Repository: cloudstack
Updated Branches:
  refs/heads/master 66816827c -> cd1706191


Detail view: Cleanup old tab content on change

Add event handler on tab change to remove all old tab content. This prevents
potential conflicts with referencing widget data caused by old content laying
around.


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

Branch: refs/heads/master
Commit: cd17061916eaf4f93f8dced4bf097035574976d3
Parents: 6681682
Author: Brian Federle <[email protected]>
Authored: Thu Jun 12 13:33:21 2014 -0700
Committer: Brian Federle <[email protected]>
Committed: Thu Jun 12 13:33:21 2014 -0700

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


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/cd170619/ui/scripts/ui/widgets/detailView.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui/widgets/detailView.js 
b/ui/scripts/ui/widgets/detailView.js
index 2bd07e4..6ff36c4 100644
--- a/ui/scripts/ui/widgets/detailView.js
+++ b/ui/scripts/ui/widgets/detailView.js
@@ -1465,7 +1465,12 @@
             }
         }
 
-        $detailView.tabs();
+        $detailView.tabs({
+            select: function() {
+                // Cleanup old tab content
+                $detailView.find('.detail-group').children().remove();
+            }
+        });
 
         return $detailView;
     };

Reply via email to