mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
unbind before rebind, partial fix towards #2413 issue
This commit is contained in:
parent
248d7655d7
commit
23570e80a7
1 changed files with 1 additions and 0 deletions
|
@ -149,6 +149,7 @@ var padeditbar = (function()
|
||||||
$("#editbar .editbarbutton").attr("unselectable", "on"); // for IE
|
$("#editbar .editbarbutton").attr("unselectable", "on"); // for IE
|
||||||
$("#editbar").removeClass("disabledtoolbar").addClass("enabledtoolbar");
|
$("#editbar").removeClass("disabledtoolbar").addClass("enabledtoolbar");
|
||||||
$("#editbar [data-key]").each(function () {
|
$("#editbar [data-key]").each(function () {
|
||||||
|
$(this).unbind("click");
|
||||||
(new ToolbarItem($(this))).bind(function (command, item) {
|
(new ToolbarItem($(this))).bind(function (command, item) {
|
||||||
self.triggerCommand(command, item);
|
self.triggerCommand(command, item);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue