From a95c8164a4f3fe7dff041173f99eb54ba15bf88e Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Mon, 20 Apr 2015 11:55:32 -0300 Subject: [PATCH] Back button should exit the app if there is no more previous pages --- src/js/init.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/js/init.js b/src/js/init.js index 7179a3ccc..0cec07bf6 100644 --- a/src/js/init.js +++ b/src/js/init.js @@ -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';