X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/e49688b94d3f0f2e72efc2b66f77a5c148aa7ea2..ac2e9ceea7cf6a59810081d52b64d9c22861c62d:/project/static/js/editor.js diff --git a/project/static/js/editor.js b/project/static/js/editor.js index 94b4ca97..79b7fa90 100644 --- a/project/static/js/editor.js +++ b/project/static/js/editor.js @@ -152,9 +152,7 @@ Panel.prototype.connectToolbar = function() // move the extra var extra_buttons = $('span.panel-toolbar-extra button', toolbar); var placeholder = $('div.panel-toolbar span.panel-toolbar-extra > span', this.wrap); - placeholder.replaceWith(extra_buttons); - - var action_buttons = $('button', extra_buttons); + placeholder.replaceWith(extra_buttons); // connect group-switch buttons var group_buttons = $('*.toolbar-tabs-container button', toolbar); @@ -185,7 +183,7 @@ Panel.prototype.connectToolbar = function() }); // connect action buttons - var allbuttons = $.makeArray(action_buttons); + var allbuttons = $.makeArray(extra_buttons); $.merge(allbuttons, $.makeArray($('*.toolbar-button-groups-container button', toolbar)) );