mirror of
https://github.com/Doodle3D/doodle3d-client.git
synced 2024-11-22 09:17:56 +01:00
Open Settings window after settings are loaded
This commit is contained in:
parent
f783726c47
commit
cfff8b498f
@ -151,12 +151,10 @@ function SettingsWindow() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.showSettings = function() {
|
this.showSettings = function() {
|
||||||
console.log("f:showSettings()");
|
this.loadSettings(function() { // reload settings
|
||||||
|
$("#contentOverlay").fadeIn(375, function() {
|
||||||
this.loadSettings(); // reload settings
|
document.body.removeEventListener('touchmove',prevent,false);
|
||||||
// this.window.css("display","table");
|
});
|
||||||
$("#contentOverlay").fadeIn(375, function() {
|
|
||||||
document.body.removeEventListener('touchmove',prevent,false);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
this.hideSettings = function(complete) {
|
this.hideSettings = function(complete) {
|
||||||
@ -167,7 +165,7 @@ function SettingsWindow() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
this.loadSettings = function() {
|
this.loadSettings = function(complete) {
|
||||||
if (!communicateWithWifibox) {
|
if (!communicateWithWifibox) {
|
||||||
console.log(" communicateWithWifibox is false: settings aren't being loaded from wifibox...")
|
console.log(" communicateWithWifibox is false: settings aren't being loaded from wifibox...")
|
||||||
return;
|
return;
|
||||||
@ -184,6 +182,7 @@ function SettingsWindow() {
|
|||||||
console.log(" settings: ",settings);
|
console.log(" settings: ",settings);
|
||||||
self.fillForm();
|
self.fillForm();
|
||||||
$(document).trigger(SettingsWindow.SETTINGS_LOADED);
|
$(document).trigger(SettingsWindow.SETTINGS_LOADED);
|
||||||
|
if(complete) complete();
|
||||||
}
|
}
|
||||||
}).fail(function() {
|
}).fail(function() {
|
||||||
console.log("Settings:loadSettings: failed");
|
console.log("Settings:loadSettings: failed");
|
||||||
|
Loading…
Reference in New Issue
Block a user