mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix sort menus
This commit is contained in:
parent
5e27de701a
commit
76c2164aeb
4 changed files with 17 additions and 10 deletions
|
@ -2909,20 +2909,27 @@
|
|||
PaperDialogHelper.openWithHash(dlg, 'sortmenu');
|
||||
|
||||
$('.groupSortBy', dlg).on('iron-select', function () {
|
||||
options.query.SortBy = this.selected.replace('_', ',');
|
||||
|
||||
var newValue = this.selected.replace('_', ',');
|
||||
var changed = options.query.SortBy != newValue;
|
||||
|
||||
options.query.SortBy = newValue;
|
||||
options.query.StartIndex = 0;
|
||||
|
||||
if (options.callback) {
|
||||
if (options.callback && changed) {
|
||||
options.callback();
|
||||
}
|
||||
});
|
||||
|
||||
$('.groupSortOrder', dlg).on('iron-select', function () {
|
||||
|
||||
options.query.SortOrder = this.selected;
|
||||
var newValue = this.selected;
|
||||
var changed = options.query.SortOrder != newValue;
|
||||
|
||||
options.query.SortOrder = newValue;
|
||||
options.query.StartIndex = 0;
|
||||
|
||||
if (options.callback) {
|
||||
if (options.callback && changed) {
|
||||
options.callback();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue