0
0
mirror of https://github.com/Doodle3D/doodle3d-client.git synced 2024-11-22 09:17:56 +01:00

Increase saveSettings timeout and request it through cgi-bin

This commit is contained in:
peteruithoven 2013-12-23 17:51:31 +01:00
parent 136799e16c
commit 14789ea046

View File

@ -21,6 +21,7 @@ function SettingsWindow() {
this.btnOK;
this.form;
this.timeoutTime = 3000;
this.saveSettingsTimeoutTime = 8000;
this.retryDelay = 2000; // retry setTimout delay
this.retryRetrieveNetworkStatusDelayTime = 1000;// retry setTimout delay
@ -237,11 +238,11 @@ function SettingsWindow() {
settings = newSettings; // store new settings in global settings
if (communicateWithWifibox) {
$.ajax({
url: this.wifiboxURL + "/config",
url: self.wifiboxCGIBinURL + "/config",
type: "POST",
data: newSettings,
dataType: 'json',
timeout: this.timeoutTime,
timeout: self.saveSettingsTimeoutTime,
success: function(response){
console.log("Settings:saveSettings response: ",response);
if(response.status == "error") {