mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
remove jquery from playlists page
This commit is contained in:
parent
447eff16cd
commit
0d4419098f
3 changed files with 52 additions and 40 deletions
|
@ -2842,15 +2842,15 @@
|
|||
positionTo: button,
|
||||
callback: function (id) {
|
||||
|
||||
if (dispatchEvent) {
|
||||
button.dispatchEvent(new CustomEvent('layoutchange', {
|
||||
detail: {
|
||||
viewStyle: id
|
||||
},
|
||||
bubbles: true,
|
||||
cancelable: false
|
||||
}));
|
||||
} else {
|
||||
button.dispatchEvent(new CustomEvent('layoutchange', {
|
||||
detail: {
|
||||
viewStyle: id
|
||||
},
|
||||
bubbles: true,
|
||||
cancelable: false
|
||||
}));
|
||||
|
||||
if (!dispatchEvent) {
|
||||
// TODO: remove jQuery
|
||||
require(['jQuery'], function ($) {
|
||||
$(button).trigger('layoutchange', [id]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue