fixed issue 1601:admin edit page first tab closing issue, thanks Paolo

This commit is contained in:
mdipierro
2013-07-20 13:00:43 -05:00
parent 3a9f328ab2
commit 94a33dc47f
2 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.6.0-development+timestamp.2013.07.20.12.53.53
Version 2.6.0-development+timestamp.2013.07.20.12.59.52
+7 -2
View File
@@ -65,10 +65,15 @@ jQuery(document).on('click', '#filesTab button[class="close"]', function (e) {
}
if (close) {
if (tab_header.hasClass('active') === true) { //Set active an other tab
jQuery(tab_header).prev().children('a[data-toggle="tab"]').tab('show'); // Select first tab
var $prev = jQuery(tab_header).prev();
if ($prev.length) {
$prev.children('a[data-toggle="tab"]').tab('show'); // select previous tab
} else {
jQuery(tab_header).next().children('a[data-toggle="tab"]').tab('show'); // select next tab
}
}
tab_header.remove(); //remove li of tab
tab_body.remove(); //remove li of tab
tab_body.remove(); //remove tab content (div)
}
});