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