summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-03-11 16:47:34 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-03-11 16:47:34 +0100
commit220e5e76996a4071c9645b3026abfc0592f6af0b (patch)
treeb1fe0e81eda440b4892fb30ea47846a5ce8d9f55 /app/controllers
parenteee020b64190189e8f5484ab913e3314686e8bcb (diff)
Bugfix for #236
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/trigger_controller.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/controllers/trigger_controller.rb b/app/controllers/trigger_controller.rb
index a1bab65..fb53c37 100644
--- a/app/controllers/trigger_controller.rb
+++ b/app/controllers/trigger_controller.rb
@@ -16,6 +16,10 @@ class TriggerController < ApplicationController
next
end
+ # Indicate a new voicemail in the navigation bar.
+ #
+ PrivatePub.publish_to("/users/#{user.id}/messages/new", "$('#new_voicemail_or_fax_indicator').hide('fast').show('slow');")
+
if user.email.blank?
next
end
@@ -42,10 +46,6 @@ class TriggerController < ApplicationController
end
end
- # Indicate a new voicemail in the navigation bar.
- #
- PrivatePub.publish_to("/users/#{user.id}/messages/new", "$('#new_voicemail_or_fax_indicator').hide('fast').show('slow');")
-
render(
:status => 200,
:layout => false,