mirror of https://github.com/apache/cloudstack.git
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.
This commit is contained in:
parent
66816827cb
commit
cd17061916
|
|
@ -1465,7 +1465,12 @@
|
|||
}
|
||||
}
|
||||
|
||||
$detailView.tabs();
|
||||
$detailView.tabs({
|
||||
select: function() {
|
||||
// Cleanup old tab content
|
||||
$detailView.find('.detail-group').children().remove();
|
||||
}
|
||||
});
|
||||
|
||||
return $detailView;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue