diff --git a/core/modules/toolbar/js/views/ToolbarVisualView.js b/core/modules/toolbar/js/views/ToolbarVisualView.js index c3b0c85..b4e1d74 100644 --- a/core/modules/toolbar/js/views/ToolbarVisualView.js +++ b/core/modules/toolbar/js/views/ToolbarVisualView.js @@ -66,6 +66,12 @@ * The `ToolbarVisualView` instance. */ render: function () { + var toolbah = $('toolbar-bar'); + if (toolbah.data('loaded')!=1) { + var clone = toolbah.clone().off(); + + toolbah.replaceWith(clone); + } this.updateTabs(); this.updateTrayOrientation(); this.updateBarAttributes(); @@ -90,6 +96,11 @@ window.setTimeout(function () { Drupal.displace(true); }, 0); + + if ($('toolbar-bar').data('loaded')) { + $('toolbar-bar').data('loaded',1) + clone.replaceWith(toolbah); + } return this; },