From 27e57a83fca3e82afc1698d3496d6c15e23faef1 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 2 Oct 2015 13:20:51 -0400 Subject: [PATCH] subsequent site message displays dont have the settimeout, they still jump a bit though --- src/js/wraps/alerts_mediator.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/js/wraps/alerts_mediator.js b/src/js/wraps/alerts_mediator.js index 349937ef3..3e8ba348d 100644 --- a/src/js/wraps/alerts_mediator.js +++ b/src/js/wraps/alerts_mediator.js @@ -25,8 +25,8 @@ define([ activate: function(beehive, app) { AlertsMediator.prototype.activate.apply(this, arguments); var pubsub = this.getPubSub(); - pubsub.subscribe(pubsub.APP_STARTED, _.bind(this.displaySiteMessage, this)); - pubsub.subscribe(pubsub.ARIA_ANNOUNCEMENT, _.bind(this.displaySiteMessage, this)); + pubsub.subscribe(pubsub.APP_STARTED, _.bind(this.displaySiteMessageWithDelay, this)); + pubsub.subscribe(pubsub.ARIA_ANNOUNCEMENT, _.bind(this.checkAndDisplaySiteMessage, this)); }, onAlert: function(apiFeedback, psk) { @@ -34,11 +34,11 @@ define([ AlertsMediator.prototype.onAlert.apply(this, arguments); }, - displaySiteMessage : function() { + displaySiteMessageWithDelay : function() { var self = this; setTimeout(function() { self.checkAndDisplaySiteMessage(); - }, 1000); + }, 500); }, onDestroy: function() {