summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-03-11 11:37:27 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-03-11 11:37:27 +0100
commit8cbf5e8f740383c56c1c92de85df3421b0e1a5d0 (patch)
treea491ff2d24e62b2a010b6f7962757edccf7517de
parent576471586e781ad1f7535e5931b1e41e25fad71b (diff)
Fax indicator test.
-rw-r--r--app/controllers/trigger_controller.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/controllers/trigger_controller.rb b/app/controllers/trigger_controller.rb
index 1a5bfca..2e97711 100644
--- a/app/controllers/trigger_controller.rb
+++ b/app/controllers/trigger_controller.rb
@@ -110,6 +110,13 @@ class TriggerController < ApplicationController
end
if errors.count == 0
+ # Indicate a new fax in the navigation bar.
+ #
+ if fax_document.fax_accountable.class == User
+ user = fax_document.fax_accountable
+ PrivatePub.publish_to("/users/#{user.id}/messages/new", "$('#new_voicemail_indicator').hide.delay(250).show('slow').hide.delay(250).show('slow');")
+ end
+
render(
:status => 200,
:layout => false,