From dd46fc383b7b427f0824249deb078fd64a0d578d Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Sun, 16 Mar 2014 23:45:10 +0100 Subject: [PATCH] Remove unneeded show() in WikiEditor toolbar This line forces sections to be visible after you edit the toolbar. There is no apparent reason why this should be necessary. It has been in there almost from the start, but doesn't seem to be used Change-Id: Iadaae3fb9ae1899e12605d653b2688616b8f7c40 --- modules/jquery.wikiEditor.toolbar.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/modules/jquery.wikiEditor.toolbar.js b/modules/jquery.wikiEditor.toolbar.js index 71592b53..9938ed0e 100644 --- a/modules/jquery.wikiEditor.toolbar.js +++ b/modules/jquery.wikiEditor.toolbar.js @@ -61,9 +61,6 @@ api : { // Tool $group.append( $.wikiEditor.modules.toolbar.fn.buildTool( context, tool, data[type][tool] ) ); } - if ( $group.children().length ) { - $group.show(); - } smooth = false; break; case 'pages':