summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/views/layouts/_messages.html.haml2
-rw-r--r--users/app/assets/javascripts/users.js8
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) {