24 lines
460 B
JavaScript
24 lines
460 B
JavaScript
jingrow.ready(function () {
|
|
let page = $("#page-signup");
|
|
|
|
function signup() {
|
|
let args = {}
|
|
page.find("form.signup").serializeArray().map(e => {
|
|
args[e.name] = e.value;
|
|
});
|
|
jingrow.call({
|
|
method: "jcloude.www.signup.signup",
|
|
args: args,
|
|
type: "POST",
|
|
btn: page.find(".signup-button"),
|
|
callback: () => {
|
|
window.location.replace("dashboard");
|
|
}
|
|
});
|
|
};
|
|
|
|
page.find(".signup-button").on("click", () => {
|
|
signup();
|
|
});
|
|
});
|