Skip to content

Commit d3812d7

Browse files
committed
enable menu to be closed when clicking within the iframe
1 parent 3b3249d commit d3812d7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cms/static/cms/js/plugins/cms.toolbar.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,11 @@ $(document).ready(function () {
400400
// save url in settings
401401
that.settings.sideframe.url = iframe.get(0).contentWindow.location.href;
402402
that.setSettings();
403+
404+
// bind extra events
405+
iframe.contents().find('body').bind('click', function () {
406+
$(document).trigger('click.cms');
407+
});
403408
});
404409

405410
// cancel animation if sideframe is already shown

0 commit comments

Comments
 (0)