From 91fcedd2e47302935a38144609ade86d71c7ce0b Mon Sep 17 00:00:00 2001 From: Doug Bell Date: Mon, 30 Aug 2010 18:09:46 -0500 Subject: [PATCH] all admin plugins have the same response options --- www/extras/admin/admin.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/www/extras/admin/admin.js b/www/extras/admin/admin.js index 6a4ab7bbb..12751871e 100644 --- a/www/extras/admin/admin.js +++ b/www/extras/admin/admin.js @@ -531,7 +531,7 @@ WebGUI.Admin.prototype.requestHelper var callback = { success : function (o) { var resp = YAHOO.lang.JSON.parse( o.responseText ); - this.processHelper( resp ); + this.processPlugin( resp ); }, failure : function (o) { @@ -544,8 +544,8 @@ WebGUI.Admin.prototype.requestHelper }; /** - * processHelper( response ) - * Process the helper response. Possible responses include: + * processPlugin( response ) + * Process the plugin response. Possible responses include: * message : A message to the user * error : An error message * openDialog : Open a dialog with the given URL @@ -554,7 +554,7 @@ WebGUI.Admin.prototype.requestHelper * scriptFunc : Run a JS function. Used with scriptFile * scriptArgs : Arguments to scriptFunc. Used with scriptFile */ -WebGUI.Admin.prototype.processHelper +WebGUI.Admin.prototype.processPlugin = function ( resp ) { if ( resp.openTab ) { this.openTab( resp.openTab ); @@ -572,7 +572,7 @@ WebGUI.Admin.prototype.processHelper this.showInfoMessage( resp.error ); } else { - alert( "Unknown helper response: " + YAHOO.lang.JSON.stringify(resp) ); + alert( "Unknown plugin response: " + YAHOO.lang.JSON.stringify(resp) ); } };