mirror of https://github.com/apache/cloudstack.git
Fix error handling and context passing
This commit is contained in:
parent
dd384fc9d7
commit
5439073bcd
|
|
@ -389,7 +389,7 @@
|
|||
);
|
||||
}
|
||||
},
|
||||
error: function(args) {
|
||||
error: function(message) {
|
||||
// Put in original values on error
|
||||
$inputs.each(function() {
|
||||
var $input = $(this);
|
||||
|
|
@ -399,7 +399,7 @@
|
|||
$value.html(originalValue);
|
||||
});
|
||||
|
||||
if (args.message) cloudStack.dialog.notice({ message: args.message });
|
||||
if (message) cloudStack.dialog.notice({ message: message });
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
@ -784,6 +784,7 @@
|
|||
|
||||
if (tabs.listView) {
|
||||
return $('<div>').listView({
|
||||
context: args.context,
|
||||
listView: tabs.listView
|
||||
}).appendTo($tabContent);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue