diff options
Diffstat (limited to 'users/app/assets')
-rw-r--r-- | users/app/assets/javascripts/users.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/users/app/assets/javascripts/users.js b/users/app/assets/javascripts/users.js index 1d05692..4195df8 100644 --- a/users/app/assets/javascripts/users.js +++ b/users/app/assets/javascripts/users.js @@ -41,6 +41,10 @@ var element, error, field; if ($.isPlainObject(message) && message.errors) { for (field in message.errors) { + if (field == 'base') { + alert_message(message.errors[field]); + next; + } error = message.errors[field]; element = $('form input[name$="[' + field + ']"]'); if (!element) { |