using only one variable in url

This commit is contained in:
Gabriel Bazán 2015-12-09 12:16:15 -03:00
commit c5336221a4
2 changed files with 13 additions and 8 deletions

View file

@ -475,7 +475,7 @@ angular
}
})
.state('cordova', {
url: '/cordova/:status/:isHome',
url: '/cordova/:status/:exit',
views: {
'main': {
controller: function($rootScope, $state, $stateParams, $timeout, go, isCordova) {
@ -484,7 +484,7 @@ angular
$rootScope.$emit('Local/Resume');
break;
case 'backbutton':
if (isCordova && $stateParams.isHome == 'true' && !$rootScope.modalOpened) {
if (isCordova && $stateParams.exit == 'true' && !$rootScope.modalOpened) {
navigator.app.exitApp();
} else {
$rootScope.$emit('closeModal');