mirror of https://github.com/apache/cloudstack.git
metrics: add method in cloudBrowser to remove the last panel
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
246acb6b6e
commit
64858ebc38
|
|
@ -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…
Reference in New Issue