1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Remove this commented out code

This commit is contained in:
anantharaju 2023-04-03 10:43:19 +05:30
parent 0e7bda7bd0
commit eed2084584
7 changed files with 4 additions and 19 deletions

View file

@ -60,6 +60,7 @@
- [edvwib](https://github.com/edvwib) - [edvwib](https://github.com/edvwib)
- [Rob Farraher](https://github.com/farraherbg) - [Rob Farraher](https://github.com/farraherbg)
- [Pier-Luc Ducharme](https://github.com/pl-ducharme) - [Pier-Luc Ducharme](https://github.com/pl-ducharme)
- [Anantharaju S](https://github.com/Anantharajus)
# Emby Contributors # Emby Contributors

View file

@ -250,7 +250,6 @@ import '../../styles/scrollstyles.scss';
} }
function isOpened(dlg) { function isOpened(dlg) {
//return dlg.opened;
return !dlg.classList.contains('hide'); return !dlg.classList.contains('hide');
} }

View file

@ -297,10 +297,8 @@ class FilterMenu {
} }
if (submitted) { if (submitted) {
//if (!options.onChange) {
saveValues(dlg, options.settings, options.settingsKey, options.setfilters); saveValues(dlg, options.settings, options.settingsKey, options.setfilters);
return resolve(); return resolve();
//}
} }
return resolve(); return resolve();
}); });

View file

@ -52,17 +52,13 @@ import Events from '../utils/events.ts';
} }
if (browser.edge && mediaType === 'Video') { if (browser.edge && mediaType === 'Video') {
//return true;
} }
// simple playback should use the native support // simple playback should use the native support
if (runTimeTicks) { if (runTimeTicks) {
//if (!browser.edge) {
return false; return false;
//}
} }
//return false;
} }
return true; return true;

View file

@ -205,13 +205,7 @@ import datetime from '../../scripts/datetime';
if (user.Policy.EnableContentDownloading && appHost.supports('filedownload')) { if (user.Policy.EnableContentDownloading && appHost.supports('filedownload')) {
// Disabled because there is no callback for this item // Disabled because there is no callback for this item
/*
menuItems.push({
name: globalize.translate('Download'),
id: 'download',
icon: 'file_download'
});
*/
} }
if (user.Policy.IsAdministrator) { if (user.Policy.IsAdministrator) {

View file

@ -1038,7 +1038,6 @@ class PlaybackManager {
} }
} }
//var mediaType = item.MediaType;
return getPlayer(item, getDefaultPlayOptions()) != null; return getPlayer(item, getDefaultPlayOptions()) != null;
}; };

View file

@ -509,8 +509,6 @@ const scrollerFactory = function (frame, options) {
} }
} }
//event.preventDefault();
// Disable click on a source element, as it is unwelcome when dragging // Disable click on a source element, as it is unwelcome when dragging
if (!dragging.locked && dragging.path > dragging.pathToLock) { if (!dragging.locked && dragging.path > dragging.pathToLock) {
dragging.locked = 1; dragging.locked = 1;
@ -606,7 +604,7 @@ const scrollerFactory = function (frame, options) {
if (transform) { if (transform) {
// Trap scrolling only when necessary and/or requested // Trap scrolling only when necessary and/or requested
if (delta > 0 && pos.dest < pos.end || delta < 0 && pos.dest > pos.start) { if (delta > 0 && pos.dest < pos.end || delta < 0 && pos.dest > pos.start) {
//stopDefault(event, 1);
} }
self.slideBy(o.scrollBy * delta); self.slideBy(o.scrollBy * delta);