|
|
|
@ -19,9 +19,16 @@ var routes = [
|
|
|
|
|
},
|
|
|
|
|
on: {
|
|
|
|
|
pageAfterIn: function () {
|
|
|
|
|
function tryToLoadHomePage() {
|
|
|
|
|
if (typeof loadHomePage != "function") {
|
|
|
|
|
setTimeout(tryToLoadHomePage, 500);
|
|
|
|
|
} else {
|
|
|
|
|
loadHomePage(function () {});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
tryToLoadHomePage();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/setup/0',
|
|
|
|
@ -39,9 +46,16 @@ var routes = [
|
|
|
|
|
name: 'sendmoney',
|
|
|
|
|
on: {
|
|
|
|
|
pageAfterIn: function () {
|
|
|
|
|
function tryToLoadSendMoneyPage() {
|
|
|
|
|
if (typeof loadSendMoneyPage != "function") {
|
|
|
|
|
setTimeout(tryToLoadSendMoneyPage, 500);
|
|
|
|
|
} else {
|
|
|
|
|
loadSendMoneyPage();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
tryToLoadSendMoneyPage();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/moneysent/:amount/:name',
|
|
|
|
@ -54,9 +68,16 @@ var routes = [
|
|
|
|
|
name: 'addfunds',
|
|
|
|
|
on: {
|
|
|
|
|
pageAfterIn: function () {
|
|
|
|
|
function tryToInitPaymentPage() {
|
|
|
|
|
if (typeof initPaymentPage != "function") {
|
|
|
|
|
setTimeout(tryToInitPaymentPage, 500);
|
|
|
|
|
} else {
|
|
|
|
|
initPaymentPage();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
tryToInitPaymentPage();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/fundsadded/:amount/:final_amount',
|
|
|
|
@ -69,9 +90,16 @@ var routes = [
|
|
|
|
|
name: 'updateprofile',
|
|
|
|
|
on: {
|
|
|
|
|
pageAfterIn: function () {
|
|
|
|
|
function tryToLoadProfilePage() {
|
|
|
|
|
if (typeof loadProfilePage != "function") {
|
|
|
|
|
setTimeout(tryToLoadProfilePage, 500);
|
|
|
|
|
} else {
|
|
|
|
|
loadProfilePage();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
tryToLoadProfilePage();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/settings',
|
|
|
|
|