Browse Source

Fix: alert "Fine" only once

master
Ilya Konanykhin 8 years ago
parent
commit
ed2f3f6e61
  1. 2
      app/assets/javascripts/devise/registrations.js

2
app/assets/javascripts/devise/registrations.js

@ -22,7 +22,7 @@ $(document).ready(function(){
} }
if( contact_vals.length >= MIN_LEN || submit_count > MAX_SUBMITS){ if( contact_vals.length >= MIN_LEN || submit_count > MAX_SUBMITS){
if( submit_count > MAX_SUBMITS ){ if( submit_count == MAX_SUBMITS + 1 ){
alert("Fine."); alert("Fine.");
} }
return true; return true;

Loading…
Cancel
Save