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 1ef7460815.
This commit is contained in:
Scott Walters 2013-09-12 12:02:22 -05:00
parent 1ef7460815
commit 6dbc6697c5

View file

@ -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 ) );