Skip to content

Commit

Permalink
Merge pull request #937 from alphagov/mb-survey-visible-id
Browse files Browse the repository at this point in the history
Add a taxonomy survey notification ID to surveys.js
  • Loading branch information
Mo Baig authored Mar 8, 2017
2 parents 9318488 + bc5600b commit f9dd130
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/assets/javascripts/surveys.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f9dd130

Please sign in to comment.