diff options
author | Azul <azul@leap.se> | 2013-07-16 12:36:56 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2013-07-16 12:36:56 +0200 |
commit | adfae07c5d682d9aaf09d1f33507e5f9c2b80976 (patch) | |
tree | 288c27afb981e5e90c45d8a7829b85182a13fca7 /users/app/assets/javascripts | |
parent | 6e47ea438cf35c6cad00e65e2817cb57d07db111 (diff) |
to move to the next iteration use continue in js.
Diffstat (limited to 'users/app/assets/javascripts')
-rw-r--r-- | users/app/assets/javascripts/users.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/users/app/assets/javascripts/users.js b/users/app/assets/javascripts/users.js index 65bed4f..4c9b510 100644 --- a/users/app/assets/javascripts/users.js +++ b/users/app/assets/javascripts/users.js @@ -49,12 +49,12 @@ for (field in message.errors) { if (field == 'base') { alert_message(message.errors[field]); - next; + continue; } error = message.errors[field]; element = $('form input[name$="[' + field + ']"]'); if (!element) { - next; + continue; } element.trigger('element:validate:fail.ClientSideValidations', error).data('valid', false); } |