mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
Revert "Tokenizer2, pull in https://github.com/zellerda/Tokenize2/pull/38 to fix https://github.com/opnsense/plugins/issues/769"
This reverts commit 542331c93f0b9f6d639f719853c9ac5e8b28303c.
This commit is contained in:
parent
31e3f748ad
commit
34ed67aeb0
@ -703,16 +703,23 @@
|
||||
var el = this.container;
|
||||
var zindex = 0;
|
||||
|
||||
do {
|
||||
var calc = parseInt(el.css('z-index'));
|
||||
if(!isNaN(calc) && calc > zindex){
|
||||
zindex = calc;
|
||||
if(!isNaN(parseInt(el.css('z-index'))) && parseInt(el.css('z-index')) > 0){
|
||||
zindex = parseInt(el.css('z-index'));
|
||||
}
|
||||
|
||||
if(zindex < 1){
|
||||
while(el.length) {
|
||||
el = el.parent();
|
||||
if(el.length > 0){
|
||||
if(!isNaN(parseInt(el.css('z-index'))) && parseInt(el.css('z-index')) > 0){
|
||||
return parseInt(el.css('z-index'));
|
||||
}
|
||||
if(el.is('html')){
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if(el.is('html')){
|
||||
break;
|
||||
}
|
||||
el = el.parent();
|
||||
} while(el.length > 0);
|
||||
}
|
||||
|
||||
return zindex;
|
||||
|
||||
|
||||
2
src/opnsense/www/js/tokenize2.min.js
vendored
2
src/opnsense/www/js/tokenize2.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user