diff options
author | jessib <jessib@leap.se> | 2013-07-11 12:13:55 -0700 |
---|---|---|
committer | jessib <jessib@leap.se> | 2013-07-11 12:13:55 -0700 |
commit | 4991ac797b37a539d4d26837351c1f2c3505b58d (patch) | |
tree | e00f28b0625d4205386f14964a8447a346ac0478 | |
parent | 047d6c002abfb498f20c09cf318fc4a10901837f (diff) |
Slight cleanup due to some emacs annoyances.
-rw-r--r-- | app/views/layouts/_messages.html.haml | 2 | ||||
-rw-r--r-- | users/app/assets/javascripts/users.js | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/app/views/layouts/_messages.html.haml b/app/views/layouts/_messages.html.haml index 3a2361e..7ff985f 100644 --- a/app/views/layouts/_messages.html.haml +++ b/app/views/layouts/_messages.html.haml @@ -3,4 +3,4 @@ - if msg.is_a?(String) %div{:class => "alert alert-#{name == :notice ? "success" : "error"}"} %a.close{"data-dismiss" => "alert"} × - = content_tag :div, format_flash(msg), :id => "flash_#{name}"
\ No newline at end of file + = content_tag :div, format_flash(msg), :id => "flash_#{name}" diff --git a/users/app/assets/javascripts/users.js b/users/app/assets/javascripts/users.js index 2eb644b..65bed4f 100644 --- a/users/app/assets/javascripts/users.js +++ b/users/app/assets/javascripts/users.js @@ -47,10 +47,10 @@ var element, error, field; if ($.isPlainObject(message) && message.errors) { for (field in message.errors) { - if (field == 'base') { - alert_message(message.errors[field]); - next; - } + if (field == 'base') { + alert_message(message.errors[field]); + next; + } error = message.errors[field]; element = $('form input[name$="[' + field + ']"]'); if (!element) { |