Back button should exit the app if there is no more previous pages
This commit is contained in:
parent
5b506cb361
commit
a95c8164a4
1 changed files with 5 additions and 3 deletions
|
|
@ -43,9 +43,11 @@ angular.element(document).ready(function() {
|
||||||
// window.location = '#/cordoba/online';
|
// window.location = '#/cordoba/online';
|
||||||
// }, false);
|
// }, false);
|
||||||
|
|
||||||
document.addEventListener('backbutton', function() {
|
// Removes handler for backbutton event.
|
||||||
window.location = '#/walletHome';
|
// All apps use a natural flow for back button
|
||||||
}, false);
|
//document.addEventListener('backbutton', function() {
|
||||||
|
// window.location = '#/walletHome';
|
||||||
|
//}, false);
|
||||||
|
|
||||||
document.addEventListener('menubutton', function() {
|
document.addEventListener('menubutton', function() {
|
||||||
window.location = '#/preferences';
|
window.location = '#/preferences';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue