From 3dbe41f90b5e7058ec0fb5460516812143d4f254 Mon Sep 17 00:00:00 2001 From: PliablePixels Date: Tue, 14 Jul 2015 16:51:33 -0400 Subject: reloading page on resume to take care of inactive modals. Not ideal, but better than inactive screens --- www/js/ModalCtrl.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'www/js/ModalCtrl.js') diff --git a/www/js/ModalCtrl.js b/www/js/ModalCtrl.js index cce6db09..e8910585 100644 --- a/www/js/ModalCtrl.js +++ b/www/js/ModalCtrl.js @@ -7,8 +7,10 @@ angular.module('zmApp.controllers').controller('ModalCtrl', ['$scope', '$rootScope', 'ZMDataModel', '$ionicSideMenuDelegate', '$timeout', '$interval', '$ionicModal', '$ionicLoading', '$http', '$state', '$stateParams', '$ionicHistory', '$ionicScrollDelegate', function ($scope, $rootScope, ZMDataModel, $ionicSideMenuDelegate, $timeout, $interval, $ionicModal, $ionicLoading, $http, $state, $stateParams, $ionicHistory, $ionicScrollDelegate) { - console.log("**** INSIDE MODAL CTRL *****"); + console.log("**** INSIDE MODAL CTRL, recomputing rand *****"); + $scope.rand = Math.floor((Math.random() * 100000) + 1); + //$state.go($state.current, {}, {reload: true}); // This holds the PTZ menu control // Note that I hacked radialMenu -- cgit v1.2.3