Commit 3534576e authored by Michael Dombrowski's avatar Michael Dombrowski

fix null/undefined autofill

parent ff0ed996
......@@ -70,6 +70,11 @@ Copy the text after /locations/ and before /tides/latest from the URL (Including
options[4] = options[4].split("=")[1];
options[5] = options[5].split("=")[1];
options[6] = options[6].split("=")[1];
for(loc in options){
if(options[loc]===null || options[loc]=="undefined" || options[loc] == "null"){
options[loc]="";
}
}
$("#location1").val(options[0]);
$("#location2").val(options[1]);
$("#location3").val(options[2]);
......
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