Only use edit overlay if available for editing comments. We will need a plone 5 alternative

This commit is contained in:
vangheem 2015-05-30 11:45:02 -05:00
parent da84d4d642
commit 68665b6f2b
2 changed files with 10 additions and 7 deletions

View File

@ -4,7 +4,8 @@ Changelog
2.4.3 (unreleased) 2.4.3 (unreleased)
------------------ ------------------
- Nothing changed yet. - Only use edit overlay if available for editing comments
[vangheem]
2.4.2 (2015-05-04) 2.4.2 (2015-05-04)

View File

@ -189,12 +189,14 @@ require([ // jshint ignore:line
/********************************************************************** /**********************************************************************
* Edit a comment * Edit a comment
**********************************************************************/ **********************************************************************/
$('form[name="edit"]').prepOverlay({ if($.fn.prepOverlay){
cssclass: 'overlay-edit-comment', $('form[name="edit"]').prepOverlay({
width: '60%', cssclass: 'overlay-edit-comment',
subtype: 'ajax', width: '60%',
filter: '#content>*' subtype: 'ajax',
}); filter: '#content>*'
});
}
/********************************************************************** /**********************************************************************
* Delete a comment and its answers. * Delete a comment and its answers.