Rename button load more system notification to fix the bug

This commit is contained in:
Mojca Lorber 2019-04-12 11:58:47 +02:00
parent 3c0b1984d0
commit bf2e9e8194
3 changed files with 3 additions and 3 deletions

View file

@ -33,7 +33,7 @@ function bindSystemNotificationAjax() {
}
function initSystemNotificationsButton() {
$('.btn-more-notifications')
$('.btn-more-system-notifications')
.on('ajax:success', function(e, data) {
$(data.html).insertAfter($('.system-notifications-container .system-notification').last());
bindSystemNotificationAjax();

View file

@ -116,7 +116,7 @@
}
}
.btn-more-notifications {
.btn-more-system-notifications {
margin-top: 10px;
}
}

View file

@ -22,7 +22,7 @@
</div>
<div class="text-center">
<% if @system_notifications[:more_notifications_url] && @system_notifications[:notifications].present? %>
<a class="btn btn-default btn-more-notifications"
<a class="btn btn-default btn-more-system-notifications"
href="<%= @system_notifications[:more_notifications_url] %>"
data-remote="true">
<%= t("system_notifications.index.more_notifications") %></a>