Skip to content
Snippets Groups Projects

Resolve "dataLogTimer is not defined"

Merged Marius Burkard requested to merge 5119-datalogtimer-is-not-defined-2 into develop
2 files
+ 4
5
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -176,7 +176,7 @@ var ISPConfig = {
ISPConfig.onAfterContentLoad(target, $('#'+formname).serialize());
ISPConfig.pageFormChanged = false;
}
clearTimeout(dataLogTimer);
clearTimeout(ISPConfig.dataLogTimer);
ISPConfig.dataLogNotification();
ISPConfig.hideLoadIndicator();
},
@@ -285,7 +285,7 @@ var ISPConfig = {
ISPConfig.onAfterContentLoad(pagename, (params ? params : null));
ISPConfig.pageFormChanged = false;
}
clearTimeout(dataLogTimer); // clear running dataLogTimer
clearTimeout(ISPConfig.dataLogTimer); // clear running dataLogTimer
ISPConfig.dataLogNotification();
ISPConfig.hideLoadIndicator();
},
@@ -514,12 +514,12 @@ var ISPConfig = {
$('.modal-body').html(dataLogItems.join(""));
$('.notification_text').text(data['count']);
$('.notification').css('display','');
dataLogTimer = setTimeout( function() { ISPConfig.dataLogNotification(); }, 2000 );
ISPConfig.dataLogTimer = setTimeout( function() { ISPConfig.dataLogNotification(); }, 2000 );
} else {
$('.notification').css('display','none');
$('.modal-body').html('');
$('#datalogModal').modal('hide');
dataLogTimer = setTimeout( function() { ISPConfig.dataLogNotification(); }, 5000 );
ISPConfig.dataLogTimer = setTimeout( function() { ISPConfig.dataLogNotification(); }, 5000 );
}
},
error: function() {
Loading