Back button should exit the app if there is no more previous pages

This commit is contained in:
Gustavo Maximiliano Cortez 2015-04-20 11:55:32 -03:00
commit a95c8164a4

View file

@ -43,9 +43,11 @@ angular.element(document).ready(function() {
// window.location = '#/cordoba/online';
// }, false);
document.addEventListener('backbutton', function() {
window.location = '#/walletHome';
}, false);
// Removes handler for backbutton event.
// All apps use a natural flow for back button
//document.addEventListener('backbutton', function() {
// window.location = '#/walletHome';
//}, false);
document.addEventListener('menubutton', function() {
window.location = '#/preferences';