summaryrefslogtreecommitdiff
path: root/www/js/LogCtrl.js
diff options
context:
space:
mode:
authorArjun Roychowdhury <pliablepixels@gmail.com>2015-10-01 19:09:25 -0400
committerArjun Roychowdhury <pliablepixels@gmail.com>2015-10-01 19:09:25 -0400
commit3a22b40f6381bb066a7039a491c88d771d016e3f (patch)
tree6012783ccc90152a4ff613bd0d0d383558934999 /www/js/LogCtrl.js
parent07f76ec873bbd27afd7f6e5db81883afb14b09c3 (diff)
maek sure popups go away on resume
Diffstat (limited to 'www/js/LogCtrl.js')
-rw-r--r--www/js/LogCtrl.js4
1 files changed, 2 insertions, 2 deletions
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');