mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #513 from thornbill/fix-swiper
Revert Swiper to fix initialization error
This commit is contained in:
commit
66f3de495b
3 changed files with 1132 additions and 52 deletions
|
@ -17,14 +17,14 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"flv.js": "^1.5.0",
|
"flv.js": "^1.5.0",
|
||||||
"jstree": "^3.3.7",
|
|
||||||
"jquery": "^3.4.1",
|
|
||||||
"hls.js": "^0.12.4",
|
"hls.js": "^0.12.4",
|
||||||
"howler": "^2.1.2",
|
"howler": "^2.1.2",
|
||||||
|
"jquery": "^3.4.1",
|
||||||
|
"jstree": "^3.3.7",
|
||||||
|
"libjass": "^0.11.0",
|
||||||
"shaka-player": "^2.5.5",
|
"shaka-player": "^2.5.5",
|
||||||
"swiper": "^4.5.0",
|
|
||||||
"sortablejs": "^1.9.0",
|
"sortablejs": "^1.9.0",
|
||||||
"libjass": "^0.11.0"
|
"swiper": "^3.4.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"serve": "webpack-dev-server --config webpack.dev.js --open",
|
"serve": "webpack-dev-server --config webpack.dev.js --open",
|
||||||
|
|
|
@ -207,7 +207,7 @@ define(['dialogHelper', 'inputManager', 'connectionManager', 'layoutManager', 'f
|
||||||
dlg.querySelector('.swiper-wrapper').innerHTML = currentOptions.items.map(getSwiperSlideHtmlFromItem).join('');
|
dlg.querySelector('.swiper-wrapper').innerHTML = currentOptions.items.map(getSwiperSlideHtmlFromItem).join('');
|
||||||
}
|
}
|
||||||
|
|
||||||
require(['swiper'], function (swiper) {
|
require(['swiper'], function (Swiper) {
|
||||||
|
|
||||||
swiperInstance = new Swiper(dlg.querySelector('.slideshowSwiperContainer'), {
|
swiperInstance = new Swiper(dlg.querySelector('.slideshowSwiperContainer'), {
|
||||||
// Optional parameters
|
// Optional parameters
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue