Skip to content

Commit f20302c

Browse files
committedOct 2, 2011
Fix various object scoping issues. Still not context more/helper menus...
1 parent d3b4a6d commit f20302c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
 

‎www/extras/admin/admin.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -1020,6 +1020,7 @@ WebGUI.Admin.prototype.showHelperMenu
10201020
context : [ elem, 'tl', 'bl' ],
10211021
effect: { effect: YAHOO.widget.ContainerEffect.FADE, duration:0.25 }
10221022
} );
1023+
this.helperMenu = helperMenu;
10231024
this.helperMenu.render( document.body );
10241025
this.helperMenu.show();
10251026
this.helperMenu.focus();
@@ -1505,7 +1506,7 @@ WebGUI.Admin.AssetTable.prototype.addMenuOpenHandler
15051506
= function ( elem, assetId, helpers ) {
15061507
var self = this;
15071508
YAHOO.util.Event.addListener( elem, "click", function(){
1508-
self.showHelperMenu( elem, assetId, helpers );
1509+
self.admin.showHelperMenu( elem, assetId, helpers );
15091510
} );
15101511
};
15111512

@@ -2215,14 +2216,14 @@ WebGUI.Admin.Tree.prototype.onDataReturnInitializeTable
22152216
elItem.className = "clickable";
22162217
var self = this;
22172218
var crumbMenu = function () {
2218-
self.showHelperMenu( elItem, currentAssetId, currentHelpers );
2219+
self.admin.showHelperMenu( elItem, currentAssetId, currentHelpers );
22192220
};
22202221
YAHOO.util.Event.addListener( elItem, "click", crumbMenu, this, true );
22212222
elItem.appendChild( document.createTextNode( oResponse.meta.currentAsset.title ) );
22222223
elCrumb.appendChild( elItem );
22232224

22242225
// TODO: Update current asset
2225-
window.admin.navigate( oResponse.meta.currentAsset.assetId );
2226+
window.admin.navigate( currentAssetId );
22262227

22272228
// TODO Hide loading screen
22282229
};

0 commit comments

Comments
 (0)
Please sign in to comment.