X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/d3c74552a8f8509ff85cf956cf2b750d8387b683..6d66ceff54d470d238250c73ab484d496bf296db:/project/static/js/editor.js diff --git a/project/static/js/editor.js b/project/static/js/editor.js index d81a7b06..f52950ff 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)) ); @@ -576,5 +574,5 @@ $(function() { // do the layout editor.loadConfig(); - editor.setupUI(); + editor.setupUI(); });