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)
------------------
- Nothing changed yet.
- Only use edit overlay if available for editing comments
[vangheem]
2.4.2 (2015-05-04)

View File

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