diff options
author | gebele <gebele@in-silico.ch> | 2013-03-27 17:11:59 +0100 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2013-03-27 17:11:59 +0100 |
commit | de03020a09cdc6438d27916207cab1de554a70f2 (patch) | |
tree | 65192a060f7793d7741cb1c5f5d91f124ba9e0b6 /views/predict.haml | |
parent | 2b02d8fdafe4ea4d4027d5aa18d56fc77ec5ef9a (diff) |
error handling compound names;smiles validation
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"} |