From 5439073bcd5fe67d085902efb23412a02c030eae Mon Sep 17 00:00:00 2001 From: Brian Federle Date: Thu, 15 Dec 2011 19:31:37 -0800 Subject: [PATCH] Fix error handling and context passing --- ui/scripts/ui/widgets/detailView.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/scripts/ui/widgets/detailView.js b/ui/scripts/ui/widgets/detailView.js index 5cf492b7b80..54ff39905c8 100644 --- a/ui/scripts/ui/widgets/detailView.js +++ b/ui/scripts/ui/widgets/detailView.js @@ -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 $('
').listView({ + context: args.context, listView: tabs.listView }).appendTo($tabContent); }