Skip to content

Commit

Permalink
#806 show in thumbnail mode on click, squeeze monitors on rearrage
Browse files Browse the repository at this point in the history
  • Loading branch information
pliablepixels committed Apr 14, 2019
1 parent b4413e4 commit dbeb930
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion www/js/MontageCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,8 @@ angular.module('zmApp.controllers')
$timeout(function () {
NVR.debug("doing the jiggle and dance...");
pckry.resize(true);
}, 300);
$scope.squeezeMonitors();
}, 500);

}, 100);

Expand Down Expand Up @@ -1877,8 +1878,14 @@ angular.module('zmApp.controllers')

$scope.showEvent = function(monitor) {

if (!monitor.Monitor.lastEvent) {
NVR.debug ("Events cleared, nothing to show");
return;
}

var ld = NVR.getLogin();
var url = ld.apiurl;
var eid = monitor.Monitor.lastEvent.events[0].Event.Id;
url += '/events/'+monitor.Monitor.lastEvent.events[0].Event.Id+'.json';
var mid = monitor.Monitor.Id;

Expand Down Expand Up @@ -1950,6 +1957,8 @@ angular.module('zmApp.controllers')
scope: $scope, // give ModalCtrl access to this scope
animation: 'slide-in-up',
id: 'footage',
snapshot: 'enabled',
eventId: eid,
showLive: sl
})
.then(function (modal) {
Expand Down Expand Up @@ -2284,6 +2293,8 @@ angular.module('zmApp.controllers')

};
$scope.eventButtonClicked = function (monitor, showEvents) {


var ld = NVR.getLogin();
mid = monitor.Monitor.Id;
// always use server tz to avoid confusion
Expand Down Expand Up @@ -2355,6 +2366,7 @@ angular.module('zmApp.controllers')
NVR.debug("doing the jiggle and dance...");
pckry.resize(true);
pckry.shiftLayout();
$scope.squeezeMonitors();
}, 600);


Expand Down

0 comments on commit dbeb930

Please sign in to comment.