mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-09 05:18:01 +08:00
Rename button load more system notification to fix the bug
This commit is contained in:
parent
3c0b1984d0
commit
bf2e9e8194
3 changed files with 3 additions and 3 deletions
|
@ -33,7 +33,7 @@ function bindSystemNotificationAjax() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function initSystemNotificationsButton() {
|
function initSystemNotificationsButton() {
|
||||||
$('.btn-more-notifications')
|
$('.btn-more-system-notifications')
|
||||||
.on('ajax:success', function(e, data) {
|
.on('ajax:success', function(e, data) {
|
||||||
$(data.html).insertAfter($('.system-notifications-container .system-notification').last());
|
$(data.html).insertAfter($('.system-notifications-container .system-notification').last());
|
||||||
bindSystemNotificationAjax();
|
bindSystemNotificationAjax();
|
||||||
|
|
|
@ -116,7 +116,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-more-notifications {
|
.btn-more-system-notifications {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
<% if @system_notifications[:more_notifications_url] && @system_notifications[:notifications].present? %>
|
<% 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] %>"
|
href="<%= @system_notifications[:more_notifications_url] %>"
|
||||||
data-remote="true">
|
data-remote="true">
|
||||||
<%= t("system_notifications.index.more_notifications") %></a>
|
<%= t("system_notifications.index.more_notifications") %></a>
|
||||||
|
|
Loading…
Add table
Reference in a new issue