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>
This commit is contained in:
Rohit Yadav 2015-11-05 12:35:25 +05:30
parent 77b01fa7a5
commit a48a224eae

View File

@ -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
*/