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