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:
parent
136799e16c
commit
14789ea046
@ -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") {
|
||||||
|
Loading…
Reference in New Issue
Block a user