Commit 4a8a9ea5 authored by Bo-Chun Chen's avatar Bo-Chun Chen Committed by Krish Moodbidri
Browse files

Call modal show in function, remove hardcoded overlay and capture bid of user

- Call modal show in displayloading function
- Capturing the value of username(Blazerid) field
parent e149db34
function displayloading() { function displayloading() {
document.getElementById("notification_window").innerHTML = "" + $('#myModal').modal('show');
"<div class=\"joyride-tip-guide\" data-index=\"0\" style=\"visibility: visible; display: block; top: 77.5px; left: 570px;\"><span class=\"joyride-nub\" style=\"display: none;\"></span><div class=\"joyride-content-wrapper\" role=\"dialog\"><ol>\n" +
" <h4>\n" +
"\n" +
" Your account is pending creation...\n" +
"\n" +
" </h4>\n" +
" <br><p>\n" +
" This can take between 5-10 min.\n" +
" </p>\n" +
" </ol>\n" +
" <img src=\"/static/img/loading.gif\" style=\"width: 35px; height: auto\"> Pending...\n" +
" </div></div>\n" +
"\n" +
" <div class=\"joyride-modal-bg\" style=\"display: block;\"></div>"
} }
function request_account() { function request_account() {
socket.emit('request account', { socket.emit('request account', {
fullname: document.getElementById("fullname").value, fullname: document.getElementById("fullname").value,
reason: document.getElementById("reason").value, reason: document.getElementById("reason").value,
username: document.getElementById("username").innerText username: document.getElementById("bid").value
}) })
} }
function refresh() { function refresh() {
document.location.reload(true); document.location.reload(true);
} }
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment