Go to page top after Create/Save anything in Version 1.2.19
Moderators: Developers, Moderators
Go to page top after Create/Save anything in Version 1.2.19
As i used to have the behavior in v0.8.8f, is there any simple solution to modify code in v1.2.19 that the page scrolls up to top, after anything is created or saved ?
Re: Go to page top after Create/Save anything in Version 1.2.19
You would need a modification to the loadPage functions so that they set the location to be back to the top.
Cacti Developer & Release Manager
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Re: Go to page top after Create/Save anything in Version 1.2.19
Thank you for the hint. Do you mean the function loadPage in ./include/layout.js ? There is following code:
applySkin();
if (isMobile.any() != null) {
window.scrollTo(0,1);
} else {
window.scrollTo(0,0);
}
handleConsole(pageName);
I guess window.scrollTo should do this, but as I am not really a programmer, i would not know, where to modify in the function loadPage
Who is online
Users browsing this forum: No registered users and 4 guests