From 0bfb836ec9a9bbb9c9449c33512640fdb17338f0 Mon Sep 17 00:00:00 2001 From: Scott Walters Date: Fri, 27 Sep 2013 12:32:04 -0500 Subject: [PATCH] New Content in Tree view needed to use showView() instead of gotoAsset(). --- www/extras/admin/admin.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/extras/admin/admin.js b/www/extras/admin/admin.js index bc0588e80..1958785db 100644 --- a/www/extras/admin/admin.js +++ b/www/extras/admin/admin.js @@ -943,10 +943,11 @@ WebGUI.Admin.prototype.openForkDialog /** * addNewContent( urlFragment ) * Add new content by visiting the given URL fragment + * This is called from the HTML/JS generated by WebGUI for whatever?op=admin. */ WebGUI.Admin.prototype.addNewContent = function ( urlFragment ) { - this.gotoAsset( appendToUrl( this.currentAssetDef.url, urlFragment ) ); + this.showView( appendToUrl( this.currentAssetDef.url, urlFragment ) ); }; /**