mirror of
https://github.com/Doodle3D/doodle3d-client.git
synced 2024-11-25 02:27:56 +01:00
Restored signing after settings submit
This commit is contained in:
parent
652192d42d
commit
fd8520698e
@ -108,15 +108,15 @@ function NetworkAPI() {
|
||||
|
||||
this.signin = function() {
|
||||
$.ajax({
|
||||
url: self.wifiboxCGIBinURL + "/network/signin",
|
||||
url: _wifiboxCGIBinURL + "/network/signin",
|
||||
type: "GET",
|
||||
dataType: 'json',
|
||||
timeout: self.timeoutTime,
|
||||
timeout: _timeoutTime,
|
||||
success: function(response){
|
||||
console.log("Settings:signin response: ",response);
|
||||
console.log("NetworkAPI:signin response: ",response);
|
||||
}
|
||||
}).fail(function() {
|
||||
console.log("Settings:signin: failed");
|
||||
console.log("NetworkAPI:signin: failed");
|
||||
});
|
||||
};
|
||||
}
|
@ -40,6 +40,7 @@ function SettingsWindow() {
|
||||
this.updatePanel = new UpdatePanel();
|
||||
this.printerPanel = new PrinterPanel();
|
||||
var _networkPanel = new NetworkPanel();
|
||||
var _networkAPI = new NetworkAPI();
|
||||
|
||||
var self = this;
|
||||
|
||||
@ -96,7 +97,7 @@ function SettingsWindow() {
|
||||
self.printerPanel.init(wifiboxURL,wifiboxCGIBinURL,$printerPanelElement);
|
||||
self.printerPanel.fillForm = self.fillForm;
|
||||
|
||||
|
||||
_networkAPI.init(wifiboxURL,wifiboxCGIBinURL);
|
||||
}
|
||||
}).fail(function() {
|
||||
console.log("FATAL ERROR: Settings:printer/listall failed");
|
||||
@ -323,9 +324,7 @@ function SettingsWindow() {
|
||||
};
|
||||
|
||||
this.signin = function() {
|
||||
|
||||
// TODO use api.network
|
||||
|
||||
_networkAPI.signin();
|
||||
};
|
||||
|
||||
this.downloadlogs = function() {
|
||||
|
Loading…
Reference in New Issue
Block a user