toodego: skip section toggling code in edit mode (#51437)
This commit is contained in:
parent
2d75688ef4
commit
417f7571cd
|
@ -1145,6 +1145,9 @@ $(function() {
|
|||
if ($(elem).find('.a11y-toggle-link').length) return;
|
||||
var a = $(elem).append('<a class="a11y-toggle-link" href=""><span class="sr-only">plier/déplier la section</span></a>')
|
||||
$(a).on('click', function() {
|
||||
if ($(this).parents('.edit-mode').length) {
|
||||
return true;
|
||||
}
|
||||
$(this).parent().trigger('click');
|
||||
return false;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue