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:
Brian Federle 2014-06-12 13:33:21 -07:00
parent 66816827cb
commit cd17061916
1 changed files with 6 additions and 1 deletions

View File

@ -1465,7 +1465,12 @@
}
}
$detailView.tabs();
$detailView.tabs({
select: function() {
// Cleanup old tab content
$detailView.find('.detail-group').children().remove();
}
});
return $detailView;
};