mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
Merge pull request #564 from dmitrylyzo/focus_library_order
Fix focus of library order item after change
This commit is contained in:
commit
230424b321
@ -330,6 +330,7 @@ define(['require', 'apphost', 'layoutManager', 'focusManager', 'globalize', 'loa
|
|||||||
if (next) {
|
if (next) {
|
||||||
viewItem.parentNode.removeChild(viewItem);
|
viewItem.parentNode.removeChild(viewItem);
|
||||||
next.parentNode.insertBefore(viewItem, next.nextSibling);
|
next.parentNode.insertBefore(viewItem, next.nextSibling);
|
||||||
|
focusManager.focus(e.target);
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
@ -339,6 +340,7 @@ define(['require', 'apphost', 'layoutManager', 'focusManager', 'globalize', 'loa
|
|||||||
if (prev) {
|
if (prev) {
|
||||||
viewItem.parentNode.removeChild(viewItem);
|
viewItem.parentNode.removeChild(viewItem);
|
||||||
prev.parentNode.insertBefore(viewItem, prev);
|
prev.parentNode.insertBefore(viewItem, prev);
|
||||||
|
focusManager.focus(e.target);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user