mirror of
https://github.com/Doodle3D/doodle3d-client.git
synced 2025-01-07 10:56:29 +01:00
logging
This commit is contained in:
parent
a7e1ee72a8
commit
22ff578557
@ -7,6 +7,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
function FormPanel() {
|
function FormPanel() {
|
||||||
|
var className = 'FormPanel';
|
||||||
|
|
||||||
var _configAPI = new ConfigAPI();
|
var _configAPI = new ConfigAPI();
|
||||||
var _retryDelay = 2000;
|
var _retryDelay = 2000;
|
||||||
@ -102,6 +103,7 @@ function FormPanel() {
|
|||||||
textareas.each( function(index,element) {
|
textareas.each( function(index,element) {
|
||||||
var elem = $(element);
|
var elem = $(element);
|
||||||
var value = settings[elem.attr('name')];
|
var value = settings[elem.attr('name')];
|
||||||
|
// console.log(className,'fillForm textarea set value',value);
|
||||||
elem.val(value);
|
elem.val(value);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
@ -145,6 +147,7 @@ function FormPanel() {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
this.loadSettings = function(targetSettings,complete) {
|
this.loadSettings = function(targetSettings,complete) {
|
||||||
|
// console.log(className,'loadSettings',targetSettings);
|
||||||
_configAPI.load(targetSettings,complete,function() {
|
_configAPI.load(targetSettings,complete,function() {
|
||||||
clearTimeout(_retryLoadSettingsDelay);
|
clearTimeout(_retryLoadSettingsDelay);
|
||||||
_retryLoadSettingsDelay = setTimeout(function() { _self.loadSettings(targetSettings,complete); },_retryDelay); // retry after delay
|
_retryLoadSettingsDelay = setTimeout(function() { _self.loadSettings(targetSettings,complete); },_retryDelay); // retry after delay
|
||||||
|
Loading…
Reference in New Issue
Block a user