From 6e786e41c247276c6d30aa14774a6c8e3ea38b03 Mon Sep 17 00:00:00 2001 From: Lawrence Date: Sun, 29 Oct 2017 12:31:51 +0800 Subject: [PATCH] Updating index to create new menu, custom.js with new code, moved config parameters from index.php to its own file --- includes/config.php | 23 +++++++++++++++++++++++ index.php | 9 +++++++-- js/custom.js | 2 +- 3 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 includes/config.php diff --git a/includes/config.php b/includes/config.php new file mode 100644 index 00000000..58033aa4 --- /dev/null +++ b/includes/config.php @@ -0,0 +1,23 @@ + diff --git a/index.php b/index.php index 4a2f3119..26aad6a0 100755 --- a/index.php +++ b/index.php @@ -121,8 +121,13 @@ $theme_url = 'dist/css/' . $theme;
  • Configure Hotspot
  • -
  • - Configure Networking +
  • Configure DHCP Server diff --git a/js/custom.js b/js/custom.js index 8f8b61a6..f4b8f9db 100644 --- a/js/custom.js +++ b/js/custom.js @@ -49,7 +49,7 @@ function loadCurrentSettings(strInterface) { //console.log(i2+":"+v2); switch(i2) { case "static": - if(v2 == 1) { + if(v2 == 'true') { $('#'+int+'-static').click(); } break;