summaryrefslogtreecommitdiff
path: root/app/views/profiles/notifications
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-08-27 12:18:53 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-08-27 12:18:53 +0300
commita2a7c8093b7fb2966a40c6c6be45c4dd52683ab4 (patch)
treee1fb33235c83a820a901fce7acbc862e5766ef27 /app/views/profiles/notifications
parentdf9550c75d4e0aaa4d3c84d934da43de5f3563cf (diff)
downloadgitlab-ce-a2a7c8093b7fb2966a40c6c6be45c4dd52683ab4.tar.gz
Use flash message for notification across app
Diffstat (limited to 'app/views/profiles/notifications')
-rw-r--r--app/views/profiles/notifications/show.html.haml9
-rw-r--r--app/views/profiles/notifications/update.js.haml4
2 files changed, 2 insertions, 11 deletions
diff --git a/app/views/profiles/notifications/show.html.haml b/app/views/profiles/notifications/show.html.haml
index 356d5499f07..8353b2f5f23 100644
--- a/app/views/profiles/notifications/show.html.haml
+++ b/app/views/profiles/notifications/show.html.haml
@@ -56,12 +56,3 @@
- @users_projects.each do |users_project|
- notification = Notification.new(users_project)
= render 'settings', type: 'project', membership: users_project, notification: notification
-
-
-.save-status-fixed
- %span.update-success.cgreen.hide
- %i.icon-ok
- Saved
- %span.update-failed.cred.hide
- %i.icon-remove
- Failed
diff --git a/app/views/profiles/notifications/update.js.haml b/app/views/profiles/notifications/update.js.haml
index 88e74d50671..84c6ab25599 100644
--- a/app/views/profiles/notifications/update.js.haml
+++ b/app/views/profiles/notifications/update.js.haml
@@ -1,6 +1,6 @@
- if @saved
:plain
- $('.save-status-fixed .update-success').showAndHide();
+ new Flash("Notification settings saved", "notice")
- else
:plain
- $('.save-status-fixed .update-failed').showAndHide();
+ new Flash("Failed to save new settings", "alert")