cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject [37/50] [abbrv] git commit: updated refs/heads/ui-ucs to 9334dab
Date Tue, 09 Jul 2013 20:46:19 GMT
Detail view: Fix context not being refreshed on perform action


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/9e5449c3
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/9e5449c3
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/9e5449c3

Branch: refs/heads/ui-ucs
Commit: 9e5449c34745ddfd63ba46719aed63f6f9a995fd
Parents: a876a57
Author: Brian Federle <brian.federle@citrix.com>
Authored: Mon Jul 8 15:52:56 2013 -0700
Committer: Brian Federle <brian.federle@citrix.com>
Committed: Mon Jul 8 15:53:14 2013 -0700

----------------------------------------------------------------------
 ui/scripts/ui/widgets/detailView.js | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/9e5449c3/ui/scripts/ui/widgets/detailView.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui/widgets/detailView.js b/ui/scripts/ui/widgets/detailView.js
index 356d9f2..0bccef5 100644
--- a/ui/scripts/ui/widgets/detailView.js
+++ b/ui/scripts/ui/widgets/detailView.js
@@ -88,9 +88,17 @@
 
       var updateTabContent = function(newData) {
         var $detailViewElems = $detailView.find('ul.ui-tabs-nav, .detail-group').remove();
+        var viewArgs = $detailView.data('view-args');
+        var context =  viewArgs.context;
+        var activeContextItem = viewArgs.section ? context[viewArgs.section][0] : null;
+        
         $detailView.tabs('destroy');
         $detailView.data('view-args').jsonObj = newData;
 
+        if (activeContextItem) {
+          $.extend(activeContextItem, newData);
+        }
+
         makeTabs(
           $detailView,
           $detailView.data('view-args').tabs,


Mime
View raw message