mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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:
parent
77b01fa7a5
commit
a48a224eae
@ -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
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user