From 6dbc6697c51b112b336fc62fdfb41be633bc9e52 Mon Sep 17 00:00:00 2001 From: Scott Walters Date: Thu, 12 Sep 2013 12:02:22 -0500 Subject: [PATCH] Revert "when flipping between Tree and View tabs with edit on, clear out the containers for the toolbars before re-adding the toolbars" ... jquery isn't reliably available; trying to do this with YUI instead This reverts commit 1ef7460815cf99227caca156e87241be2d98a803. --- www/extras/admin/toolbar.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/www/extras/admin/toolbar.js b/www/extras/admin/toolbar.js index 27060ac4a..72421a7e6 100644 --- a/www/extras/admin/toolbar.js +++ b/www/extras/admin/toolbar.js @@ -32,10 +32,6 @@ WebGUI.Toolbar.createAll = function( ) { var holders = YAHOO.util.Selector.query( '.wg-admin-toolbar' ); for ( var i = 0; i < holders.length; i++ ) { var holder = holders[i]; - - // when flipping between Tree and View tabs with edit on, clear out the containers for the toolbars before re-adding the toolbars - $(holder).empty(); - var assetId = holder.id.match( /wg-admin-toolbar-(.+)/ )[1]; var toolbar = new WebGUI.Toolbar( assetId, { "parent" : holder } ); toolbar.getAssetData( assetId, bind( toolbar, toolbar.render ) );