luci-mod-status: fix iptables jump on argon theme
Signed-off-by: Liangbin Lian <jjm2473@gmail.com>
This commit is contained in:
parent
51db83ce3c
commit
db543b5fed
1 changed files with 5 additions and 1 deletions
|
@ -252,7 +252,11 @@ return view.extend({
|
|||
elem = document.getElementById('rule_%s_%s'.format(table.toLowerCase(), chain));
|
||||
|
||||
if (elem) {
|
||||
(document.documentElement || document.body.parentNode || document.body).scrollTop = elem.offsetTop - 40;
|
||||
if (elem.scrollIntoView) {
|
||||
elem.scrollIntoView();
|
||||
} else {
|
||||
(document.documentElement || document.body.parentNode || document.body).scrollTop = elem.offsetTop - 40;
|
||||
}
|
||||
elem.classList.remove('flash');
|
||||
void elem.offsetWidth;
|
||||
elem.classList.add('flash');
|
||||
|
|
Loading…
Reference in a new issue