Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/profiles/preferences/update.js.erb')
-rw-r--r--app/views/profiles/preferences/update.js.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/profiles/preferences/update.js.erb b/app/views/profiles/preferences/update.js.erb
index 8397acbf1b3..241262880c1 100644
--- a/app/views/profiles/preferences/update.js.erb
+++ b/app/views/profiles/preferences/update.js.erb
@@ -14,7 +14,7 @@ $('input[type=submit]').enable()
// Show flash messages
<% if flash.notice %>
- new Flash('<%= flash.discard(:notice) %>', 'notice')
+ new Flash({ message: '<%= flash.discard(:notice) %>', type: 'notice'})
<% elsif flash.alert %>
- new Flash('<%= flash.discard(:alert) %>', 'alert')
+ new Flash({ message: '<%= flash.discard(:alert) %>', type: 'alert'})
<% end %>