Commit ad9d9fb6 authored by root's avatar root

Remove some errors

parent c1d56a65
Pipeline #44 failed with stage
......@@ -10,6 +10,7 @@ var validation = {
var submitted = false;
function validate() {
var valid = true;
var field;
for (field in req) {
if (!validation[req[field]]) {
valid = false;
......@@ -37,16 +38,16 @@ function processPostcode() {
$('div#addseldiv').removeAttr("style");
for (var i = 0; i < (j.addresses.length); i++) {
options += '<option>';
if (j.addresses[i].flat != null) {
if (j.addresses[i].flat !== null) {
options += j.addresses[i].flat + "\n";
}
if (j.addresses[i].house != null) {
if (j.addresses[i].house !== null) {
options += j.addresses[i].house + "\n";
}
if (j.addresses[i].road != null) {
if (j.addresses[i].road !== null) {
options += j.addresses[i].road + "\n";
}
if (j.addresses[i].city != null) {
if (j.addresses[i].city !== null) {
options += j.addresses[i].city + "\n";
}
options += '</option>';
......@@ -56,13 +57,13 @@ function processPostcode() {
}
if (j.addresses.length == 1) {
$('div#addseldiv').attr("style", "display:none");
$("textarea#address")
$("textarea#address");
$('div#addressmessage').attr("style", "color:green; float:right; clear:right;");
$('div#addressmessage').html("OK");
validation["address"] = true;
validation.address = true;
validate();
}
})
});
}
function lookupSID(setname) {
......
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