Просмотр исходного кода

Fixed #31 - added notification after bulk action is executed.

Martin Edenhofer 12 лет назад
Родитель
Сommit
383b995b1f
2 измененных файлов с 6 добавлено и 2 удалено
  1. 5 1
      app/assets/javascripts/app/controllers/agent_ticket_view.js.coffee
  2. 1 1
      db/seeds.rb

+ 5 - 1
app/assets/javascripts/app/controllers/agent_ticket_view.js.coffee

@@ -316,11 +316,15 @@ class Index extends App.Controller
 
             # rebuild navbar with updated ticket count of overviews
             App.WebSocket.send( event: 'navupdate_ticket_overview' )
-            
+
             # fetch overview data again
             @fetch()
       )
     )
+    App.Event.trigger 'notify', {
+      type: 'success',
+      msg: App.i18n.translateContent('Bulk-Action executed!'),
+    }
 
   zoom: (e) =>
     e.preventDefault()

+ 1 - 1
db/seeds.rb

@@ -1880,6 +1880,6 @@ Translation.create_if_not_exists( :locale => 'de', :source => "Outbound", :targe
 Translation.create_if_not_exists( :locale => 'de', :source => "Adresses", :target => "Adressen", :updated_by_id => 1, :created_by_id => 1  )
 Translation.create_if_not_exists( :locale => 'de', :source => "Signatures", :target => "Signatur", :updated_by_id => 1, :created_by_id => 1  )
 Translation.create_if_not_exists( :locale => 'de', :source => "Filter", :target => "Filter", :updated_by_id => 1, :created_by_id => 1  )
-
+Translation.create_if_not_exists( :locale => 'de', :source => "Bulk-Action executed!", :target => "Sammelaktion ausgeführt!", :updated_by_id => 1, :created_by_id => 1  )
 
 #Translation.create_if_not_exists( :locale => 'de', :source => "", :target => "", :updated_by_id => 1, :created_by_id => 1  )