summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www/index.html10
-rw-r--r--www/js/app.js7
2 files changed, 17 insertions, 0 deletions
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 @@
</ion-item>
</div>
+ <div ng-if="$root.platformOS=='android'">
+ <ion-item ng-click="$root.exitApp();">
+ <span class=" item-icon-left">
+ <i class="icon ion-close-circled"></i>
+ </span> Exit
+ </ion-item>
+
+ </div>
+
+
</ion-list>
</ion-content>
</ion-side-menu>
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