mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 10:58:20 -07:00
Fix arrow buttons in library options
This commit is contained in:
parent
a76583de60
commit
137acb23a8
@ -273,14 +273,19 @@ define(["globalize", "dom", "emby-checkbox", "emby-select", "emby-input"], funct
|
|||||||
|
|
||||||
function adjustSortableListElement(elem) {
|
function adjustSortableListElement(elem) {
|
||||||
var btnSortable = elem.querySelector(".btnSortable");
|
var btnSortable = elem.querySelector(".btnSortable");
|
||||||
|
var inner = btnSortable.querySelector("i");
|
||||||
if (elem.previousSibling) {
|
if (elem.previousSibling) {
|
||||||
|
btnSortable.title = globalize.translate("ButtonUp");
|
||||||
btnSortable.classList.add("btnSortableMoveUp");
|
btnSortable.classList.add("btnSortableMoveUp");
|
||||||
btnSortable.classList.remove("btnSortableMoveDown");
|
btnSortable.classList.remove("btnSortableMoveDown");
|
||||||
btnSortable.querySelector("i").innerHTML = "keyboard_arrow_up";
|
inner.classList.remove("keyboard_arrow_down");
|
||||||
|
inner.classList.add("keyboard_arrow_up");
|
||||||
} else {
|
} else {
|
||||||
|
btnSortable.title = globalize.translate("ButtonDown");
|
||||||
btnSortable.classList.remove("btnSortableMoveUp");
|
btnSortable.classList.remove("btnSortableMoveUp");
|
||||||
btnSortable.classList.add("btnSortableMoveDown");
|
btnSortable.classList.add("btnSortableMoveDown");
|
||||||
btnSortable.querySelector("i").innerHTML = "keyboard_arrow_down";
|
inner.classList.remove("keyboard_arrow_up");
|
||||||
|
inner.classList.add("keyboard_arrow_down");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user