CLOUDSTACK-4688: UI > (1) Notifications widget - pollTimer() - error handling - check if args is null before trying to access args.message property (2) sharedFunctions.js - pollAsyncJobResult() - error handling - pass message argument to args.error().

This commit is contained in:
Jessica Wang 2013-09-17 16:30:25 -07:00
parent 832db1b398
commit 4f61396c61
2 changed files with 4 additions and 2 deletions

View File

@ -107,7 +107,9 @@ var pollAsyncJobResult = function(args) {
} }
}, },
error: function(XMLHttpResponse) { error: function(XMLHttpResponse) {
args.error(); args.error({
message: parseXMLHttpResponse(XMLHttpResponse)
});
} }
}); });
} }

View File

@ -111,7 +111,7 @@
}, },
incomplete: function(args) {}, incomplete: function(args) {},
error: function(args) { error: function(args) {
if (args.message) { if (args && args.message) {
cloudStack.dialog.notice({ cloudStack.dialog.notice({
message: _s(args.message) message: _s(args.message)
}); });