summaryrefslogtreecommitdiff
path: root/www/js/LogCtrl.js
diff options
context:
space:
mode:
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');