mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
resize library buttons
This commit is contained in:
parent
9f80d772a9
commit
a4f86c1a60
6 changed files with 29 additions and 20 deletions
|
@ -9,18 +9,18 @@
|
|||
|
||||
Notifications.showNotificationsList(startIndex, limit, elem, btn);
|
||||
|
||||
elem.on("click", ".btnPreviousPage", function(e) {
|
||||
elem.on("click", ".btnPreviousPage", function (e) {
|
||||
|
||||
e.preventDefault();
|
||||
e.preventDefault();
|
||||
|
||||
startIndex = startIndex - limit;
|
||||
startIndex = startIndex - limit;
|
||||
|
||||
if (startIndex < 0) startIndex = 0;
|
||||
if (startIndex < 0) startIndex = 0;
|
||||
|
||||
Notifications.showNotificationsList(startIndex, limit, elem, btn);
|
||||
Notifications.showNotificationsList(startIndex, limit, elem, btn);
|
||||
|
||||
})
|
||||
.on("click", ".btnNextPage", function(e) {
|
||||
})
|
||||
.on("click", ".btnNextPage", function (e) {
|
||||
|
||||
e.preventDefault();
|
||||
|
||||
|
@ -29,16 +29,16 @@
|
|||
Notifications.showNotificationsList(startIndex, limit, elem, btn);
|
||||
|
||||
});
|
||||
|
||||
$(".readOnlyContent").on("click", ".btnMarkRead", function() {
|
||||
|
||||
var ids = $(".notificationsList div").map(function() {
|
||||
$(".readOnlyContent").on("click", ".btnMarkRead", function () {
|
||||
|
||||
var ids = $(".notificationsList div").map(function () {
|
||||
|
||||
return this.getAttribute('data-notificationid');
|
||||
|
||||
}).get();
|
||||
|
||||
Notifications.markNotificationsRead(ids, function() {
|
||||
Notifications.markNotificationsRead(ids, function () {
|
||||
|
||||
Notifications.showNotificationsList(startIndex, limit, elem, btn);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue