From 383b995b1f6d726970d1ee1fe15102c91bcf4add Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sat, 5 Jan 2013 00:28:19 +0100 Subject: [PATCH] Fixed #31 - added notification after bulk action is executed. --- .../javascripts/app/controllers/agent_ticket_view.js.coffee | 6 +++++- db/seeds.rb | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/app/controllers/agent_ticket_view.js.coffee b/app/assets/javascripts/app/controllers/agent_ticket_view.js.coffee index bc7c23e64..4b5f861a7 100644 --- a/app/assets/javascripts/app/controllers/agent_ticket_view.js.coffee +++ b/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() diff --git a/db/seeds.rb b/db/seeds.rb index bd6e05675..6d17c92e5 100644 --- a/db/seeds.rb +++ b/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 )