[SUCS Devel] [Git][sucssite/sucs-site][master] Remove some errors
Laurence Sebastian Bowes
elbows at sucs.org
Mon Nov 9 15:12:48 GMT 2015
Laurence Sebastian Bowes pushed to branch master at sucssite / sucs-site
Commits:
ad9d9fb6 by root at 2015-11-09T15:12:35Z
Remove some errors
- - - - -
1 changed file:
- htdocs/js/signup.js
Changes:
=====================================
htdocs/js/signup.js
=====================================
--- a/htdocs/js/signup.js
+++ b/htdocs/js/signup.js
@@ -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) {
View it on GitLab: https://projects.sucs.org/sucssite/sucs-site/commit/ad9d9fb64447a4ad9ed1138927ecd066f6e24e09
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/devel/attachments/20151109/a7950791/attachment.html>
More information about the Devel
mailing list