diff options
Diffstat (limited to 'src/js/app.js')
-rw-r--r-- | src/js/app.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/js/app.js b/src/js/app.js index b6de327..757507b 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -12,7 +12,7 @@ var tpl = { var loadTemplate = function (index) { var name = names[index]; - console.log('Loading template: ' + name + ', index: ' + index); + FMS.printDebug('Loading template: ' + name + ', index: ' + index); $.get('templates/' + CONFIG.LANGUAGE + '/' + name + '.html', function (data) { that.templates[name] = data; index++; @@ -66,6 +66,12 @@ var tpl = { FMS.isOffline = 1; }, + printDebug: function(msg) { + if ( CONFIG.DEBUG ) { + console.log(msg); + } + }, + checkOnlineStatus: function() { if ( navigator && navigator.connection && ( navigator.connection.type == Connection.NONE || navigator.connection.type == Connection.UNKNOWN ) ) { |