From 9ead4a94160f35dd6d5a5611639ce2c6b01dcc0d Mon Sep 17 00:00:00 2001 From: peteruithoven Date: Mon, 28 Oct 2013 13:50:08 +0100 Subject: [PATCH] Seperate CGI-bin signin request --- js_src/SettingsWindow.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/js_src/SettingsWindow.js b/js_src/SettingsWindow.js index a605767..96e3ad6 100644 --- a/js_src/SettingsWindow.js +++ b/js_src/SettingsWindow.js @@ -142,6 +142,7 @@ function SettingsWindow() { self.hideSettings(function() { enableButton(self.btnOK,self.submitwindow); }); + self.signin(); } else { enableButton(self.btnOK,self.submitwindow); } @@ -331,6 +332,20 @@ function SettingsWindow() { } } + this.signin = function() { + $.ajax({ + url: self.wifiboxCGIBinURL + "/network/signin", + type: "GET", + dataType: 'json', + timeout: self.timeoutTime, + success: function(response){ + console.log("Settings:signin response: ",response); + } + }).fail(function() { + console.log("Settings:signin: failed"); + }); + } + /* * Networks ui */