1
0
Fork 0
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:
Luke Pulverenti 2016-05-27 13:18:22 -04:00
parent 447eff16cd
commit 0d4419098f
3 changed files with 52 additions and 40 deletions

View file

@ -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]);