diff options
| author | Arjun Roychowdhury <pliablepixels@gmail.com> | 2016-01-03 08:51:04 -0500 |
|---|---|---|
| committer | Arjun Roychowdhury <pliablepixels@gmail.com> | 2016-01-03 08:51:04 -0500 |
| commit | dea8dd4f669aa677661ffaca67ef2ad1634dd690 (patch) | |
| tree | 630f9a2d8dda8e5cadb0faf2a351ab0e629a88bf /www | |
| parent | 375776302a957e905c156cb4933d7719c303f8f0 (diff) | |
#128 - exit option for android
Former-commit-id: 5a81a659024dc9a805185e07f7248c5ec858a7f0
Diffstat (limited to 'www')
| -rw-r--r-- | www/index.html | 10 | ||||
| -rw-r--r-- | www/js/app.js | 7 |
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 |
