Skip to content

Commit 7e02882

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 735a323 + 6cf62df commit 7e02882

File tree

4 files changed

+521
-530
lines changed

4 files changed

+521
-530
lines changed

www/js/EventServer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
},

www/js/NVR.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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++) {

www/js/StateCtrl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
},

0 commit comments

Comments
 (0)