Commit e8b5f468 authored by alexpott's avatar alexpott

Issue #2341267 by tohesi, nod_, gaas, gendoas, droplet, DuaelFr, bartvig: Bind...

Issue #2341267 by tohesi, nod_, gaas, gendoas, droplet, DuaelFr, bartvig: Bind event handlers for future multiple toolbars
parent 2fdc2ea2
......@@ -157,15 +157,15 @@
}
}
// Bind event handlers.
$(document)
.on('click.toolbar', '.toolbar-box', toggleClickHandler)
.on('click.toolbar', '.toolbar-box a', linkClickHandler);
// Return the jQuery object.
return this.each(function (selector) {
var $menu = $(this).once('toolbar-menu');
if ($menu.length) {
// Bind event handlers.
$($menu)
.on('click.toolbar', '.toolbar-box', toggleClickHandler)
.on('click.toolbar', '.toolbar-box a', linkClickHandler);
$menu.addClass('root');
initItems($menu);
markListLevels($menu);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment