mirror of https://github.com/node-red/node-red.git
Merge pull request #3321 from node-red/fix-prev-tab-action
Fix findPreviousVisibleTab actionpull/3325/head
commit
8974d8e4df
|
@ -578,7 +578,7 @@ RED.tabs = (function() {
|
||||||
|
|
||||||
function findPreviousVisibleTab(li) {
|
function findPreviousVisibleTab(li) {
|
||||||
if (!li) {
|
if (!li) {
|
||||||
li = ul.find("li.active").parent();
|
li = ul.find("li.active");
|
||||||
}
|
}
|
||||||
var previous = li.prev();
|
var previous = li.prev();
|
||||||
while(previous.length > 0 && previous.hasClass("hide-tab")) {
|
while(previous.length > 0 && previous.hasClass("hide-tab")) {
|
||||||
|
@ -588,9 +588,9 @@ RED.tabs = (function() {
|
||||||
}
|
}
|
||||||
function findNextVisibleTab(li) {
|
function findNextVisibleTab(li) {
|
||||||
if (!li) {
|
if (!li) {
|
||||||
li = ul.find("li.active").parent();
|
li = ul.find("li.active");
|
||||||
}
|
}
|
||||||
var next = ul.find("li.active").next();
|
var next = li.next();
|
||||||
while(next.length > 0 && next.hasClass("hide-tab")) {
|
while(next.length > 0 && next.hasClass("hide-tab")) {
|
||||||
next = next.next();
|
next = next.next();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue