mirror of
https://github.com/apache/cloudstack
synced 2026-09-01 09:29:05 +00:00
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
Block a user