From 137acb23a808263fab4c0d38ae007a4ac1a3e45d Mon Sep 17 00:00:00 2001 From: Dmitry Lyzo Date: Sat, 7 Mar 2020 12:16:18 +0300 Subject: [PATCH] Fix arrow buttons in library options --- .../libraryoptionseditor/libraryoptionseditor.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/libraryoptionseditor/libraryoptionseditor.js b/src/components/libraryoptionseditor/libraryoptionseditor.js index 0480ed5072..5f3b20fda2 100644 --- a/src/components/libraryoptionseditor/libraryoptionseditor.js +++ b/src/components/libraryoptionseditor/libraryoptionseditor.js @@ -273,14 +273,19 @@ define(["globalize", "dom", "emby-checkbox", "emby-select", "emby-input"], funct function adjustSortableListElement(elem) { var btnSortable = elem.querySelector(".btnSortable"); + var inner = btnSortable.querySelector("i"); if (elem.previousSibling) { + btnSortable.title = globalize.translate("ButtonUp"); btnSortable.classList.add("btnSortableMoveUp"); btnSortable.classList.remove("btnSortableMoveDown"); - btnSortable.querySelector("i").innerHTML = "keyboard_arrow_up"; + inner.classList.remove("keyboard_arrow_down"); + inner.classList.add("keyboard_arrow_up"); } else { + btnSortable.title = globalize.translate("ButtonDown"); btnSortable.classList.remove("btnSortableMoveUp"); btnSortable.classList.add("btnSortableMoveDown"); - btnSortable.querySelector("i").innerHTML = "keyboard_arrow_down"; + inner.classList.remove("keyboard_arrow_up"); + inner.classList.add("keyboard_arrow_down"); } }