mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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:
parent
832db1b398
commit
4f61396c61
@ -107,7 +107,9 @@ var pollAsyncJobResult = function(args) {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error: function(XMLHttpResponse) {
|
error: function(XMLHttpResponse) {
|
||||||
args.error();
|
args.error({
|
||||||
|
message: parseXMLHttpResponse(XMLHttpResponse)
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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)
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user