X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/e49688b94d3f0f2e72efc2b66f77a5c148aa7ea2..acfc09bd38e71bffb09f0d78ca1fa24888a471d8:/project/static/js/editor.js?ds=inline 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)) );