cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [3/9] git commit: updated refs/heads/master to fe2917e
Date Thu, 19 Nov 2015 11:23:11 GMT
CLOUDSTACK-9020: Method to remove last panel from the breadcrumb

Adds a new method to cloudBrowser that can remove the last panel and link/ref
from the breadcrumb

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>


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

Branch: refs/heads/master
Commit: a48a224eaef1f13ac06addf85963f9f6e0f3b279
Parents: 77b01fa
Author: Rohit Yadav <rohit.yadav@shapeblue.com>
Authored: Thu Nov 5 12:35:25 2015 +0530
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Thu Nov 19 15:17:43 2015 +0530

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


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a48a224e/ui/scripts/ui/widgets/cloudBrowser.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui/widgets/cloudBrowser.js b/ui/scripts/ui/widgets/cloudBrowser.js
index 007025b..b7a5c38 100644
--- a/ui/scripts/ui/widgets/cloudBrowser.js
+++ b/ui/scripts/ui/widgets/cloudBrowser.js
@@ -321,6 +321,14 @@
             return $panel;
         },
 
+        removeLastPanel: function(args) {
+            $('div.panel:last').stop(); // Prevent destroyed panels from animating
+            this.element.find('div.panel:last').remove();
+            this.element.find('div.panel:last').removeClass('reduced');
+            $('#breadcrumbs').find('ul li:last').remove();
+            $('#breadcrumbs').find('ul div.end').remove();
+        },
+
         /**
          * Clear all panels
          */


Mime
View raw message