Fix back button

This commit is contained in:
Gustavo Maximiliano Cortez 2015-04-20 12:29:42 -03:00
commit 28461491af

View file

@ -43,11 +43,15 @@ angular.element(document).ready(function() {
// window.location = '#/cordoba/online'; // window.location = '#/cordoba/online';
// }, false); // }, false);
// Removes handler for backbutton event. // Back button event
// All apps use a natural flow for back button document.addEventListener('backbutton', function() {
//document.addEventListener('backbutton', function() { if (window.location == 'x-wmapp0:www/index.html#/') {
// window.location = '#/walletHome'; navigator.app.exitApp();
//}, false); }
else {
window.location = '#/walletHome';
}
}, false);
document.addEventListener('menubutton', function() { document.addEventListener('menubutton', function() {
window.location = '#/preferences'; window.location = '#/preferences';