Fix sort button icon
This commit is contained in:
parent
dcaa87e4cb
commit
acd9fe92b8
1 changed files with 7 additions and 1 deletions
|
@ -157,6 +157,12 @@ define(["globalize", "listView", "layoutManager", "userSettings", "focusManager"
|
||||||
return query;
|
return query;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function setSortButtonIcon(btnSortIcon, icon) {
|
||||||
|
btnSortIcon.classList.remove("arrow_downward");
|
||||||
|
btnSortIcon.classList.remove("arrow_upward");
|
||||||
|
btnSortIcon.classList.add(icon);
|
||||||
|
}
|
||||||
|
|
||||||
function updateSortText(instance) {
|
function updateSortText(instance) {
|
||||||
var btnSortText = instance.btnSortText;
|
var btnSortText = instance.btnSortText;
|
||||||
|
|
||||||
|
@ -175,7 +181,7 @@ define(["globalize", "listView", "layoutManager", "userSettings", "focusManager"
|
||||||
var btnSortIcon = instance.btnSortIcon;
|
var btnSortIcon = instance.btnSortIcon;
|
||||||
|
|
||||||
if (btnSortIcon) {
|
if (btnSortIcon) {
|
||||||
btnSortIcon.innerHTML = "Descending" === values.sortOrder ? "" : "";
|
setSortButtonIcon(btnSortIcon, "Descending" === values.sortOrder ? "arrow_downward" : "arrow_upward");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue