summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-03-10 19:11:13 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-03-10 19:11:13 +0100
commitbeb9e66a5b4e2744435f2c1f301828b68a58c96a (patch)
tree81a3c4be5c434e6d0d1d26aa2791827c3509da04 /app/controllers
parentb9aeac77779f7a9ae0e51b8d95adc7d542e09ece (diff)
Indicate a new voicemail in the navigation bar.
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/trigger_controller.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/trigger_controller.rb b/app/controllers/trigger_controller.rb
index 5e836c4..1a5bfca 100644
--- a/app/controllers/trigger_controller.rb
+++ b/app/controllers/trigger_controller.rb
@@ -42,6 +42,10 @@ class TriggerController < ApplicationController
end
end
+ # Indicate a new voicemail in the navigation bar.
+ #
+ PrivatePub.publish_to("/users/#{user.id}/messages/new", "$('#new_voicemail_indicator').hide.delay(250).show('slow').hide.delay(250).show('slow');")
+
render(
:status => 200,
:layout => false,