diff options
Diffstat (limited to 'views/predict.haml')
-rw-r--r-- | views/predict.haml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/views/predict.haml b/views/predict.haml index dbfab50..b53acb6 100644 --- a/views/predict.haml +++ b/views/predict.haml @@ -6,7 +6,7 @@ }; function checksmiles () { if (document.form.identifier.value == "") { - alert("Please insert a compound.") + alert("Please insert a compound."); document.form.identifier.focus(); return false; }; @@ -20,7 +20,8 @@ }; return true; }; - + +/ whole site content needs to be in one form. Input and checkboxes are checked by js functions. %form{:name => "form", :action => to('/predict'), :method => "post", :enctype => "multipart/form-data", :onsubmit => "return !!(checksmiles() & checkboxes())" } %fieldset#top %a{:href => "#insert", :id => "linkInsert"} |