Only use edit overlay if available for editing comments. We will need a plone 5 alternative
This commit is contained in:
parent
da84d4d642
commit
68665b6f2b
@ -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)
|
||||||
|
@ -189,12 +189,14 @@ require([ // jshint ignore:line
|
|||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
* Edit a comment
|
* Edit a comment
|
||||||
**********************************************************************/
|
**********************************************************************/
|
||||||
|
if($.fn.prepOverlay){
|
||||||
$('form[name="edit"]').prepOverlay({
|
$('form[name="edit"]').prepOverlay({
|
||||||
cssclass: 'overlay-edit-comment',
|
cssclass: 'overlay-edit-comment',
|
||||||
width: '60%',
|
width: '60%',
|
||||||
subtype: 'ajax',
|
subtype: 'ajax',
|
||||||
filter: '#content>*'
|
filter: '#content>*'
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
* Delete a comment and its answers.
|
* Delete a comment and its answers.
|
||||||
|
Loading…
Reference in New Issue
Block a user