mirror of
https://github.com/KarnerF/SMPlusGui.git
synced 2026-10-06 07:00:24 +02:00
Remove auto-scroll on panel switch
This commit is contained in:
1 parent
85401aa492
commit
0e5777a6d0
1 file changed
+1
-2
@@ -1527,8 +1527,7 @@ static void fn(struct mg_connection *c, int ev, void *ev_data) {
|
||||
"if(p)p.classList.add('active');"
|
||||
"sessionStorage.setItem('panel',el.getAttribute('data-p'));"
|
||||
"if(el.getAttribute('data-p')==='log')refreshLog();"
|
||||
"if(el.getAttribute('data-p')==='raw'){rawLoad();}"
|
||||
"window.scrollTo(0,0);}"
|
||||
"if(el.getAttribute('data-p')==='raw'){rawLoad();}}"
|
||||
/* restore panel after USB-triggered reload */
|
||||
"var _rp=sessionStorage.getItem('panel');"
|
||||
"if(_rp){var _rb=document.querySelector('.nav-item[data-p=\"'+_rp+'\"]');if(_rb)showP(_rb);}"
|
||||
|
||||
Reference in new issue
Block a user