Skip to content

Commit

Permalink
Fix always popping notifications in translated sites
Browse files Browse the repository at this point in the history
  • Loading branch information
Vamoss committed Nov 19, 2019
1 parent 5b878ba commit 5b2c149
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bootcamp/static/js/bootcamp.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ $('.form-group').removeClass('row');

/* Notifications JS basic client */
$(function () {
let emptyMessage = 'You have no unread notification';
let emptyMessage = 'data-empty="true"';

function checkNotifications() {
$.ajax({
Expand Down
2 changes: 1 addition & 1 deletion bootcamp/templates/notifications/most_recent.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
<a type="button" class="btn btn-light text-center float-left" href="{% url 'notifications:unread' %}">{% trans 'See all' %}</a>
<a type="button" class="btn btn-light text-center float-right" href="{% url 'notifications:mark_all_read' %}">{% trans 'Mark all as read' %}</a>
{% else %}
<li class="text-center">{% trans 'You have no unread notification' %}</li>
<li class="text-center" data-empty="true">{% trans 'You have no unread notification' %}</li>
{% endif %}
</ul>

0 comments on commit 5b2c149

Please sign in to comment.