From c76ead47d1b4474e8cef477a918639fa44d835f1 Mon Sep 17 00:00:00 2001 From: Arjun Roychowdhury Date: Sat, 5 Dec 2015 15:44:27 -0500 Subject: scoped all alerts to zmPopupalert so I can kill them if moved to background and resumed. show dialogs were already scoped Former-commit-id: d32398cee403f515eb593921f266abf229aa3780 --- www/js/DevOptionsCtrl.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'www/js/DevOptionsCtrl.js') diff --git a/www/js/DevOptionsCtrl.js b/www/js/DevOptionsCtrl.js index 57e694df..5dd604ba 100644 --- a/www/js/DevOptionsCtrl.js +++ b/www/js/DevOptionsCtrl.js @@ -57,7 +57,7 @@ angular.module('zmApp.controllers').controller('zmApp.DevOptionsCtrl', ['$scope' ZMDataModel.zmDebug("SaveDevOptions: called"); if (parseInt($scope.loginData.maxMontage) > zm.safeMontageLimit) { - $ionicPopup.alert({ + $rootScope.zmPopup= $ionicPopup.alert({ title: 'Note', template: 'You have selected to view more than 10 monitors in the Montage screen. Note that this is very resource intensive and may load the server or cause issues in the application. If you are not sure, please consider limiting this value to 10' }); @@ -99,7 +99,7 @@ angular.module('zmApp.controllers').controller('zmApp.DevOptionsCtrl', ['$scope' $scope.saveDevOptions = function () { saveDevOptions(); - $ionicPopup.alert({ + $rootScope.zmPopup= $ionicPopup.alert({ title: 'Settings Saved', template: 'Please explore the menu and enjoy zmNinja!' }).then(function (res) { -- cgit v1.2.3