You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by je...@apache.org on 2013/07/26 22:09:46 UTC
git commit: updated refs/heads/master to 037c695
Updated Branches:
refs/heads/master 482c42519 -> 037c6958b
CLOUDSTACK-3651: errortext in listVmwareDcs API response has been changed. Change UI to override error handling of listVmwareDcs API regardless of the content of errortext in API response.
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/037c6958
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/037c6958
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/037c6958
Branch: refs/heads/master
Commit: 037c6958b8f498f3b198e7033fee5ca77530270a
Parents: 482c425
Author: Jessica Wang <je...@apache.org>
Authored: Fri Jul 26 13:06:42 2013 -0700
Committer: Jessica Wang <je...@apache.org>
Committed: Fri Jul 26 13:06:42 2013 -0700
----------------------------------------------------------------------
ui/scripts/system.js | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/037c6958/ui/scripts/system.js
----------------------------------------------------------------------
diff --git a/ui/scripts/system.js b/ui/scripts/system.js
index b40d695..94e0eb1 100644
--- a/ui/scripts/system.js
+++ b/ui/scripts/system.js
@@ -6488,12 +6488,7 @@
selectedZoneObj.vmwaredcId = vmwaredcs[0].id;
}
},
- error: function(XMLHttpResponse) { //override default error handling: cloudStack.dialog.notice({ message: parseXMLHttpResponse(XMLHttpResponse)});
- if(parseXMLHttpResponse(XMLHttpResponse) == 'The given command does not exist or it is not available for user')
- return; //do nothing
- else
- cloudStack.dialog.notice({ message: parseXMLHttpResponse(XMLHttpResponse)}); //pop up error dialog box if the error is not 'The given command does not exist or it is not available for user'
- }
+ error: function(XMLHttpResponse) {} //override default error handling: cloudStack.dialog.notice({ message: parseXMLHttpResponse(XMLHttpResponse)});
});
// for testing only (begin)