mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
consolidate scripts
This commit is contained in:
parent
68f26ae96e
commit
0783ddff59
11 changed files with 268 additions and 146 deletions
|
@ -202,12 +202,13 @@
|
|||
});
|
||||
});
|
||||
|
||||
tabContent.querySelector('.btnSelectView').addEventListener('click', function (e) {
|
||||
var btnSelectView = tabContent.querySelector('.btnSelectView');
|
||||
btnSelectView.addEventListener('click', function (e) {
|
||||
|
||||
libraryBrowser.showLayoutMenu(e.target, self.getCurrentViewStyle(), 'List,Poster,PosterCard'.split(','));
|
||||
});
|
||||
|
||||
tabContent.querySelector('.btnSelectView').addEventListener('layoutchange', function (e) {
|
||||
btnSelectView.addEventListener('layoutchange', function (e) {
|
||||
|
||||
var viewStyle = e.detail.viewStyle;
|
||||
getPageData(tabContent).view = viewStyle;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue