summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www/js/NVR.js4
-rwxr-xr-xwww/js/app.js9
2 files changed, 10 insertions, 3 deletions
diff --git a/www/js/NVR.js b/www/js/NVR.js
index ff438892..301091a6 100644
--- a/www/js/NVR.js
+++ b/www/js/NVR.js
@@ -2643,6 +2643,10 @@ angular.module('zmApp.controllers')
return (loginData.use24hr ? "HH:mm:ss" : "hh:mm:ss a");
},
+ getTimeFormatMilliSec: function() {
+ return (loginData.use24hr ? "HH:mm:ss:sss" : "hh:mm:ss:sss a");
+
+ },
//------------------------------------------------------------------
// switches screen to 'always on' or 'auto'
//------------------------------------------------------------------
diff --git a/www/js/app.js b/www/js/app.js
index 57eb9a3f..c6ed9644 100755
--- a/www/js/app.js
+++ b/www/js/app.js
@@ -1119,12 +1119,12 @@ angular.module('zmApp', [
$ionicPlatform.ready(function () {
+
//console.log(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>INSIDE RUN");
NVR.log("******* app .run device ready");
-
$fileLogger.setStorageFilename(zm.logFile);
- $fileLogger.setTimestampFormat('MMM d, y ' + NVR.getTimeFormatSec());
+ $fileLogger.setTimestampFormat('MMM d, y ' + NVR.getTimeFormatMilliSec());
$fileLogger.checkFile().then(function (resp) {
if (parseInt(resp.size) > zm.logFileMaxSize) {
@@ -1480,7 +1480,6 @@ angular.module('zmApp', [
// http://stackoverflow.com/questions/1649086/detect-rotation-of-android-phone-in-the-browser-with-javascript
var checkOrientation = function () {
-
// give rotation time to actually rotate, or width/height will be bogus
$timeout ( function() {
@@ -1945,6 +1944,8 @@ angular.module('zmApp', [
NVR.log ("-->Re-registering online/offine");
document.addEventListener("offline", onOffline, false);
document.addEventListener("online", onOnline, false);
+ window.addEventListener("resize", checkOrientation, false);
+
$rootScope.isDownloading = false;
@@ -1998,6 +1999,8 @@ angular.module('zmApp', [
NVR.log ("-->Clearing online/offine");
document.removeEventListener("offline", onOffline, false);
document.removeEventListener("online", onOnline, false);
+ window.removeEventListener("resize", checkOrientation, false);
+
NVR.setBackground(true);
NVR.setJustResumed(false);