Skip to content

Commit 86b8357

Browse files
committed
use cms specific event handler
1 parent 344343b commit 86b8357

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cms/static/cms/js/modules/cms.plugins.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ var CMS = window.CMS || {};
3636
if (e.keyCode === CMS.KEYS.SHIFT) {
3737
doc.data('expandmode', false);
3838
}
39-
}).on('click', '.cms-plugin a, a:has(.cms-plugin)', function (e) {
39+
}).on('click.cms.plugin', '.cms-plugin a, a:has(.cms-plugin)', function (e) {
4040
// prevents single click from messing up the edit call
4141
// don't go to the link if there is custom js attached to it
4242
// or if it's clicked along with shift, ctrl, cmd

0 commit comments

Comments
 (0)