From 15e71bf39b7d0f6f42896166c584059b5b67436f Mon Sep 17 00:00:00 2001 From: Scott Walters Date: Thu, 26 Sep 2013 18:36:58 -0500 Subject: [PATCH] Create Shortcut - Admin bar clipboard display (#12432): all menu operations/AssetHelper calls now trigger a clipboard refresh --- www/extras/admin/admin.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/www/extras/admin/admin.js b/www/extras/admin/admin.js index 5255eac3e..17b7f0c94 100644 --- a/www/extras/admin/admin.js +++ b/www/extras/admin/admin.js @@ -439,7 +439,7 @@ WebGUI.Admin.prototype.requestUpdateClipboard this.updateClipboard( clipboard ); }, failure : function (o) { - + alert("Failed to refresh the clipboard"); }, scope: this }; @@ -772,6 +772,7 @@ WebGUI.Admin.prototype.processPlugin else { alert( "Unknown plugin response: " + YAHOO.lang.JSON.stringify(resp) ); } + this.requestUpdateClipboard(); // always do this }; /** @@ -1938,7 +1939,7 @@ YAHOO.lang.extend( WebGUI.Admin.Tree, WebGUI.Admin.AssetTable ); WebGUI.Admin.Tree.prototype.runHelperForSelected = function ( helperId, title ) { // XXXX this is busted -alert("running WebGUI.Admin.Tree.prototype.runHelperForSelected which I think is dead code"); +// alert("running WebGUI.Admin.Tree.prototype.runHelperForSelected which I think is dead code"); // it isn't; see the buttons on the bottom of tree view var self = this; var assetIds = this.getSelected();