Commit b74d0e6f authored by Krish Moodbidri's avatar Krish Moodbidri
Browse files

removed extra whitespaces and extral lines

parent e8392a66
Pipeline #4573 canceled with stage
function displayloading1() { function displayloading1() {
$('#overlayModal').modal('show'); $('#overlayModal').modal('show');
} }
function displayloading2() { function displayloading2() {
$('#overlayModal').modal('hide'); $('#overlayModal').modal('hide');
$('#myModal2').modal('show'); $('#myModal2').modal('show');
} }
function request_account() { function request_account() {
...@@ -17,13 +17,13 @@ function request_account() { ...@@ -17,13 +17,13 @@ function request_account() {
} }
function renderDom(title, message, error_msg) { function renderDom(title, message, error_msg) {
document.getElementById("form-wrapper").innerHTML = "<h2>" + title + "<br>"; document.getElementById("form-wrapper").innerHTML = "<h3>" + title + "</h3><br>";
document.getElementById("form-wrapper").innerHTML += "<h3>" + message + "<br>"; document.getElementById("form-wrapper").innerHTML += "<p>" + message + "</p><br>";
if (error_msg !== null ) { if (error_msg !== null ) {
var error_button = document.createElement("BUTTON"); var error_button = document.createElement("BUTTON");
error_button.innerHTML = 'Read Error Message'; error_button.innerHTML = 'Read Error Message';
document.getElementById("form-wrapper").appendChild(error_button); document.getElementById("form-wrapper").appendChild(error_button);
error_button.onclick = function(){document.getElementById("form-wrapper").innerHTML += "<br>" +error_msg} error_button.onclick = function(){document.getElementById("form-wrapper").innerHTML += "<br>" +error_msg}
} }
} }
...@@ -31,17 +31,14 @@ function autofill_form(username, fullname, email) { ...@@ -31,17 +31,14 @@ function autofill_form(username, fullname, email) {
let username_input = document.getElementById("username"); let username_input = document.getElementById("username");
let fullname_input = document.getElementById("fullname"); let fullname_input = document.getElementById("fullname");
let email_input = document.getElementById("email"); let email_input = document.getElementById("email");
if ((username.localeCompare("None")) !== 0) { if ((username.localeCompare("None")) !== 0) {
username_input.value = username; username_input.value = username;
username_input.disabled = "true"; username_input.disabled = "true";
} }
if ((fullname.localeCompare("None")) !== 0) { if ((fullname.localeCompare("None")) !== 0) {
fullname_input.value = fullname; fullname_input.value = fullname;
fullname_input.disabled = "true"; fullname_input.disabled = "true";
} }
if ((email.localeCompare("None")) !== 0) { if ((email.localeCompare("None")) !== 0) {
email_input.value = email; email_input.value = email;
email_input.disabled = "true"; email_input.disabled = "true";
......
Markdown is supported
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