0
0
mirror of https://github.com/Doodle3D/doodle3d-client.git synced 2024-06-02 04:34:32 +02: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.btnOK;
this.form; this.form;
this.timeoutTime = 3000; this.timeoutTime = 3000;
this.saveSettingsTimeoutTime = 8000;
this.retryDelay = 2000; // retry setTimout delay this.retryDelay = 2000; // retry setTimout delay
this.retryRetrieveNetworkStatusDelayTime = 1000;// retry setTimout delay this.retryRetrieveNetworkStatusDelayTime = 1000;// retry setTimout delay
@ -237,11 +238,11 @@ function SettingsWindow() {
settings = newSettings; // store new settings in global settings settings = newSettings; // store new settings in global settings
if (communicateWithWifibox) { if (communicateWithWifibox) {
$.ajax({ $.ajax({
url: this.wifiboxURL + "/config", url: self.wifiboxCGIBinURL + "/config",
type: "POST", type: "POST",
data: newSettings, data: newSettings,
dataType: 'json', dataType: 'json',
timeout: this.timeoutTime, timeout: self.saveSettingsTimeoutTime,
success: function(response){ success: function(response){
console.log("Settings:saveSettings response: ",response); console.log("Settings:saveSettings response: ",response);
if(response.status == "error") { if(response.status == "error") {