|
|
|
@ -131,7 +131,7 @@ function displayAccountInfo() {
|
|
|
|
|
}, "GET");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$("#app").on("click", "#setupAccountBtn", function () {
|
|
|
|
|
$("body").on("click", "#setupAccountBtn", function () {
|
|
|
|
|
if ($("#accountsetupform input#phonenumber").val() == "") {
|
|
|
|
|
app.dialog.alert("Add your phone number.", "Error");
|
|
|
|
|
return;
|
|
|
|
@ -175,7 +175,7 @@ $("#app").on("click", "#setupAccountBtn", function () {
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$("#app").on("click", "#updateAccountBtn", function () {
|
|
|
|
|
$("body").on("click", "#updateAccountBtn", function () {
|
|
|
|
|
if ($("#accountupdateform input#name").val() == "") {
|
|
|
|
|
app.dialog.alert("Add your name.", "Error");
|
|
|
|
|
return;
|
|
|
|
@ -218,7 +218,7 @@ $("#app").on("click", "#updateAccountBtn", function () {
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$("#app").on("click", "#connectExistingAccountBtn", function () {
|
|
|
|
|
$("body").on("click", "#connectExistingAccountBtn", function () {
|
|
|
|
|
app.dialog.prompt("Enter your phone number or account number:", "Connect Your Account", function (val) {
|
|
|
|
|
var phone = val.replace(/\D/g, '');
|
|
|
|
|
if (phone.length < 10) {
|
|
|
|
|