File tree Expand file tree Collapse file tree 4 files changed +521
-530
lines changed Expand file tree Collapse file tree 4 files changed +521
-530
lines changed Original file line number Diff line number Diff line change @@ -489,7 +489,7 @@ angular.module('zmApp.controllers')
489
489
}
490
490
491
491
// get permission if we need it
492
- FirebasePlugin . hasPermission ( function ( hasPermission ) {
492
+ window . FirebasePlugin . hasPermission ( function ( hasPermission ) {
493
493
if ( ! hasPermission ) {
494
494
window . FirebasePlugin . grantPermission ( function ( hasPermission ) {
495
495
if ( hasPermission ) {
@@ -549,7 +549,7 @@ angular.module('zmApp.controllers')
549
549
} ;
550
550
551
551
// Create the channel
552
- FirebasePlugin . createChannel ( channel ,
552
+ window . FirebasePlugin . createChannel ( channel ,
553
553
function ( ) {
554
554
NVR . debug ( 'push: Channel created: ' + channel . id ) ;
555
555
} ,
Original file line number Diff line number Diff line change @@ -385,10 +385,8 @@ angular.module('zmApp.controllers')
385
385
function object_to_query_string ( obj ) {
386
386
var str = [ ] ;
387
387
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 ( "&" ) ;
392
390
}
393
391
394
392
// custom caching function as native http doesn't cache
@@ -3886,6 +3884,8 @@ angular.module('zmApp.controllers')
3886
3884
return loginData . currentZMState ;
3887
3885
} ,
3888
3886
3887
+ object_to_query_string : object_to_query_string ,
3888
+
3889
3889
getRecordingURL : function ( id ) {
3890
3890
var idnum = parseInt ( id ) ;
3891
3891
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() {
352
352
//console.log(JSON.stringify(success));
353
353
// load returns 3 params - one in the middle is avg.
354
354
NVR . debug ( "StateCtrl/getLoadStatus: success" ) ;
355
- $scope . zmLoad = success . data . load [ 1 ] ;
355
+ $scope . zmLoad = Math . round ( success . data . load [ 1 ] * 10 ) / 10 ;
356
356
357
357
// console.log("X"+success.data.result+"X");
358
358
} ,
You can’t perform that action at this time.
0 commit comments