0
0
mirror of https://github.com/Doodle3D/doodle3d-connect.git synced 2024-12-26 10:33:48 +01:00

cleanup SettingsPage.js

This commit is contained in:
Rick Companje 2017-06-20 21:43:33 +02:00
parent 06fac06c0d
commit bca8c6a39a

View File

@ -18,12 +18,17 @@
var _updateAPI = new UpdateAPI(); var _updateAPI = new UpdateAPI();
var _configAPI = new ConfigAPI(); var _configAPI = new ConfigAPI();
var _printerAPI = new PrinterAPI(); var _printerAPI = new PrinterAPI();
var _infoAPI = new InfoAPI();
var _pageData = {}; var _pageData = {};
var _updateStatus = {}; var _updateStatus = {};
var _title; var _title;
var PAGE_ID = "#settings"; var PAGE_ID = "#settings";
var timerObject = {
interval_id : null
};
var _self = this; var _self = this;
function showOrHideFields() { function showOrHideFields() {
@ -115,12 +120,18 @@
_configAPI.init(boxURL); _configAPI.init(boxURL);
_printerAPI.init(boxURL); _printerAPI.init(boxURL);
_infoAPI.init(boxURL);
refreshSettings(); refreshSettings();
});
$.mobile.document.on('pagehide', PAGE_ID, function(){
}); });
$.mobile.document.on( "pagebeforehide", PAGE_ID, function( event, data ) { $.mobile.document.on( "pagebeforehide", PAGE_ID, function( event, data ) {
console.log("pagebeforehide");
}); });
function refreshSettings() { function refreshSettings() {