mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Changed routing system to use the more common path approach instead of query strings.
This commit is contained in:
@@ -145,8 +145,11 @@ function setCSRFTokenHeader(event, xhr, settings) {
|
||||
}
|
||||
|
||||
function contentLoaded() {
|
||||
pageCurrent = window.location.href.split("?")[1].split("=")[1];
|
||||
pageCurrent = pageCurrent.replace("#","");
|
||||
//pageCurrent = window.location.href.split("?")[1].split("=")[1];
|
||||
//pageCurrent = pageCurrent.replace("#","");
|
||||
|
||||
pageCurrent = window.location.href.split("/").pop();
|
||||
|
||||
switch(pageCurrent) {
|
||||
case "network_conf":
|
||||
getAllInterfaces();
|
||||
|
Reference in New Issue
Block a user