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:
parent
06fac06c0d
commit
bca8c6a39a
@ -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() {
|
||||||
@ -101,7 +106,7 @@
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$.mobile.document.on( "pagebeforeshow", PAGE_ID, function( event, data ) {
|
$.mobile.document.on("pagebeforeshow", PAGE_ID, function( event, data ) {
|
||||||
_pageData = d3d.util.getPageParams(PAGE_ID);
|
_pageData = d3d.util.getPageParams(PAGE_ID);
|
||||||
|
|
||||||
if(_pageData === undefined) {
|
if(_pageData === undefined) {
|
||||||
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user