This repository was archived by the owner on Jun 14, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -489,7 +489,7 @@ angular.module('zmApp.controllers')
489489 }
490490
491491 // get permission if we need it
492- FirebasePlugin . hasPermission ( function ( hasPermission ) {
492+ window . FirebasePlugin . hasPermission ( function ( hasPermission ) {
493493 if ( ! hasPermission ) {
494494 window . FirebasePlugin . grantPermission ( function ( hasPermission ) {
495495 if ( hasPermission ) {
@@ -549,7 +549,7 @@ angular.module('zmApp.controllers')
549549 } ;
550550
551551 // Create the channel
552- FirebasePlugin . createChannel ( channel ,
552+ window . FirebasePlugin . createChannel ( channel ,
553553 function ( ) {
554554 NVR . debug ( 'push: Channel created: ' + channel . id ) ;
555555 } ,
Original file line number Diff line number Diff line change @@ -385,10 +385,8 @@ angular.module('zmApp.controllers')
385385 function object_to_query_string ( obj ) {
386386 var str = [ ] ;
387387 for ( var p in obj )
388- str . push ( encodeURIComponent ( p ) + "=" +
389- encodeURIComponent ( obj [ p ] ) ) ;
390- var params = str . join ( "&" ) ;
391- return params ;
388+ str . push ( encodeURIComponent ( p ) + "=" + encodeURIComponent ( obj [ p ] ) ) ;
389+ return str . join ( "&" ) ;
392390 }
393391
394392 // custom caching function as native http doesn't cache
@@ -3886,6 +3884,8 @@ angular.module('zmApp.controllers')
38863884 return loginData . currentZMState ;
38873885 } ,
38883886
3887+ object_to_query_string : object_to_query_string ,
3888+
38893889 getRecordingURL : function ( id ) {
38903890 var idnum = parseInt ( id ) ;
38913891 for ( var i = 0 ; i < monitors . length ; i ++ ) {
Original file line number Diff line number Diff line change @@ -352,7 +352,7 @@ $scope.toggleServer = function() {
352352 //console.log(JSON.stringify(success));
353353 // load returns 3 params - one in the middle is avg.
354354 NVR . debug ( "StateCtrl/getLoadStatus: success" ) ;
355- $scope . zmLoad = success . data . load [ 1 ] ;
355+ $scope . zmLoad = Math . round ( success . data . load [ 1 ] * 10 ) / 10 ;
356356
357357 // console.log("X"+success.data.result+"X");
358358 } ,
You can’t perform that action at this time.
0 commit comments