From 3a22b40f6381bb066a7039a491c88d771d016e3f Mon Sep 17 00:00:00 2001 From: Arjun Roychowdhury Date: Thu, 1 Oct 2015 19:09:25 -0400 Subject: maek sure popups go away on resume --- www/js/LogCtrl.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'www/js/LogCtrl.js') diff --git a/www/js/LogCtrl.js b/www/js/LogCtrl.js index fb1fc6a6..27be0cce 100644 --- a/www/js/LogCtrl.js +++ b/www/js/LogCtrl.js @@ -15,12 +15,12 @@ angular.module('zmApp.controllers').controller('zmApp.LogCtrl', ['$scope', '$roo $scope.deleteLogs = function () { - var confirmPopup = $ionicPopup.confirm({ + $rootScope.zmPopup = $ionicPopup.confirm({ title: 'Please Confirm', template: 'Are you sure you want to delete logs?', }); - confirmPopup.then(function (res) { + $rootScope.zmPopup.then(function (res) { if (res) { $fileLogger.deleteLogfile().then(function () { console.log('Logfile deleted'); -- cgit v1.2.3