We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6995983 commit b9fe609Copy full SHA for b9fe609
jquery.addtabs.js
@@ -131,11 +131,13 @@ $.fn.addtabs = function (options) {
131
var tabid = 'tab_' + id;
132
var conid = 'con_' + id;
133
//如果关闭的是当前激活的TAB,激活他的前一个TAB
134
- if (obj.find("li.active").attr('id') == tabid) {
+ if (obj.find("li.active").not('.tabdrop').attr('id') == tabid) {
135
if ($("#" + tabid).prev().not(".tabdrop").size() > 0) {
136
$("#" + tabid).prev().not(".tabdrop").find("a").trigger("click");
137
} else if ($("#" + tabid).next().size() > 0) {
138
$("#" + tabid).next().trigger("click");
139
+ } else {
140
+ $(">li:last > a", navobj).trigger('click');
141
}
142
143
//关闭TAB
0 commit comments