From 9f0172691266b92b5204e440c0b31188f0eeb4ac Mon Sep 17 00:00:00 2001 From: PliablePixels Date: Tue, 18 Aug 2015 20:40:25 -0400 Subject: This is a HOLY SHIT update. I broke something, really bad in montage view. I hope I fixed it. --- www/js/ModalCtrl.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'www/js/ModalCtrl.js') diff --git a/www/js/ModalCtrl.js b/www/js/ModalCtrl.js index 1e90130c..87ec4b54 100644 --- a/www/js/ModalCtrl.js +++ b/www/js/ModalCtrl.js @@ -10,6 +10,7 @@ angular.module('zmApp.controllers').controller('ModalCtrl', ['$scope', '$rootSco console.log("**** INSIDE MODAL CTRL, recomputing rand *****"); $scope.rand = Math.floor((Math.random() * 100000) + 1); + $rootScope.rand = Math.floor((Math.random() * 100000) + 1); //$state.go($state.current, {}, {reload: true}); // This holds the PTZ menu control @@ -28,7 +29,8 @@ angular.module('zmApp.controllers').controller('ModalCtrl', ['$scope', '$rootSco $scope.showModalRangeSider = true; console.log ("****SHOWING SLIDER"); },2000); - + + $scope.radialMenuOptions = { content: '', @@ -337,6 +339,12 @@ angular.module('zmApp.controllers').controller('ModalCtrl', ['$scope', '$rootSco } }; + +$scope.reloadView = function() +{ + ZMDataModel.zmLog ("Reloading view for modal view, recomputing rand"); + $rootScope.rand = Math.floor((Math.random() * 100000) + 1); +}; $scope.scaleImage = function() { console.log ("Switching image style"); -- cgit v1.2.3