From dea8dd4f669aa677661ffaca67ef2ad1634dd690 Mon Sep 17 00:00:00 2001 From: Arjun Roychowdhury Date: Sun, 3 Jan 2016 08:51:04 -0500 Subject: #128 - exit option for android Former-commit-id: 5a81a659024dc9a805185e07f7248c5ec858a7f0 --- www/index.html | 10 ++++++++++ www/js/app.js | 7 +++++++ 2 files changed, 17 insertions(+) diff --git a/www/index.html b/www/index.html index f7ca0c7a..f42da9cb 100644 --- a/www/index.html +++ b/www/index.html @@ -204,6 +204,16 @@ +
+ + + + Exit + + +
+ + diff --git a/www/js/app.js b/www/js/app.js index 672f0943..0ef6c915 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -642,6 +642,13 @@ angular.module('zmApp', [ $rootScope.online = true; //$rootScope.minAlarmCount = "1"; + + // only for android + $rootScope.exitApp = function() + { + ZMDataModel.zmLog ("user exited app"); + ionic.Platform.exitApp(); + }; // This is a global exception interceptor -- cgit v1.2.3