From bc5600b5e97f379156f4c99eac3c055571653392 Mon Sep 17 00:00:00 2001 From: Mo Baig Date: Wed, 8 Mar 2017 11:07:04 +0000 Subject: [PATCH] Add a taxonomy survey notification ID to surveys.js If we're showing the new taxonomy navigation survey, we don't want to show other banners. --- app/assets/javascripts/surveys.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/surveys.js b/app/assets/javascripts/surveys.js index 1d77b7c6f..6f1e90b01 100644 --- a/app/assets/javascripts/surveys.js +++ b/app/assets/javascripts/surveys.js @@ -268,7 +268,13 @@ }, otherNotificationVisible: function() { - return $('#banner-notification:visible, #global-cookie-message:visible, #global-browser-prompt:visible').length > 0; + var notificationIds = [ + '#banner-notification:visible', + '#global-cookie-message:visible', + '#global-browser-prompt:visible', + '#taxonomy-survey:visible' + ] + return $(notificationIds.join(', ')).length > 0; }, surveyTakenCookieName: function(survey) {