Improve tabs functionality and add comments

This commit is contained in:
Duncan Sommerville 2015-09-22 17:34:24 -04:00
parent 50996a081f
commit 44a5e5a240
5 changed files with 291 additions and 174 deletions

View file

@ -456,7 +456,7 @@ var AIRTIME = (function(AIRTIME) {
openTabObjectIds.each(function(i, el) {
var v = parseInt($(el).val());
if ($.inArray(v, mediaIds) > -1) {
AIRTIME.tabs.closeTab($(el).closest(".pl-content").attr("data-tab-id"));
AIRTIME.tabs.get($(el).closest(".pl-content").attr("data-tab-id")).close();
}
});