mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
added channel properties
This commit is contained in:
parent
7103610eab
commit
d23bcb1964
3 changed files with 29 additions and 23 deletions
|
@ -1,4 +1,4 @@
|
||||||
define(['browser', 'datetime', 'jQuery', 'libraryBrowser'], function (browser, datetime, $, libraryBrowser) {
|
define(['browser', 'datetime', 'libraryBrowser'], function (browser, datetime, libraryBrowser) {
|
||||||
|
|
||||||
function showSlideshowMenu(context) {
|
function showSlideshowMenu(context) {
|
||||||
require(['scripts/slideshow'], function () {
|
require(['scripts/slideshow'], function () {
|
||||||
|
@ -408,7 +408,7 @@
|
||||||
// smallIcon: true
|
// smallIcon: true
|
||||||
// });
|
// });
|
||||||
|
|
||||||
// $(".playlist", page).html(html).lazyChildren();
|
// page(".playlist").html(html).lazyChildren();
|
||||||
//});
|
//});
|
||||||
|
|
||||||
html += libraryBrowser.getListViewHtml({
|
html += libraryBrowser.getListViewHtml({
|
||||||
|
@ -595,22 +595,26 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function onBtnCommandClick() {
|
||||||
|
if (currentPlayer) {
|
||||||
|
|
||||||
|
if (this.classList.contains('repeatToggleButton')) {
|
||||||
|
toggleRepeat(currentPlayer);
|
||||||
|
} else {
|
||||||
|
MediaController.sendCommand({
|
||||||
|
Name: this.getAttribute('data-command')
|
||||||
|
|
||||||
|
}, currentPlayer);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function bindEvents(context) {
|
function bindEvents(context) {
|
||||||
|
|
||||||
$('.btnCommand', context).on('click', function () {
|
var btnCommand = context.querySelectorAll('.btnCommand');
|
||||||
|
for (var i = 0, length = btnCommand.length; i < length; i++) {
|
||||||
if (currentPlayer) {
|
btnCommand[i].addEventListener('click', onBtnCommandClick);
|
||||||
|
}
|
||||||
if (this.classList.contains('repeatToggleButton')) {
|
|
||||||
toggleRepeat(currentPlayer);
|
|
||||||
} else {
|
|
||||||
MediaController.sendCommand({
|
|
||||||
Name: this.getAttribute('data-command')
|
|
||||||
|
|
||||||
}, currentPlayer);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
context.querySelector('.btnToggleFullscreen').addEventListener('click', function (e) {
|
context.querySelector('.btnToggleFullscreen').addEventListener('click', function (e) {
|
||||||
|
|
||||||
|
@ -729,13 +733,13 @@
|
||||||
Name: 'DisplayMessage',
|
Name: 'DisplayMessage',
|
||||||
Arguments: {
|
Arguments: {
|
||||||
|
|
||||||
Header: $('#txtMessageTitle', form).val(),
|
Header: form.querySelector('#txtMessageTitle').value,
|
||||||
Text: $('#txtMessageText', form).val()
|
Text: form.querySelector('#txtMessageText', form).value
|
||||||
}
|
}
|
||||||
|
|
||||||
}, currentPlayer);
|
}, currentPlayer);
|
||||||
|
|
||||||
$('input', form).val('');
|
form.querySelector('input').value = '';
|
||||||
require(['toast'], function (toast) {
|
require(['toast'], function (toast) {
|
||||||
toast('Message sent.');
|
toast('Message sent.');
|
||||||
});
|
});
|
||||||
|
@ -753,12 +757,12 @@
|
||||||
Name: 'SendString',
|
Name: 'SendString',
|
||||||
Arguments: {
|
Arguments: {
|
||||||
|
|
||||||
String: $('#txtTypeText', form).val()
|
String: form.querySelector('#txtTypeText', form).value
|
||||||
}
|
}
|
||||||
|
|
||||||
}, currentPlayer);
|
}, currentPlayer);
|
||||||
|
|
||||||
$('input', form).val('');
|
form.querySelector('input').value = '';
|
||||||
require(['toast'], function (toast) {
|
require(['toast'], function (toast) {
|
||||||
toast('Text sent.');
|
toast('Text sent.');
|
||||||
});
|
});
|
||||||
|
|
|
@ -125,7 +125,8 @@
|
||||||
userId: Dashboard.getCurrentUserId(),
|
userId: Dashboard.getCurrentUserId(),
|
||||||
limit: enableScrollX() ? 12 : 4,
|
limit: enableScrollX() ? 12 : 4,
|
||||||
IsInProgress: false,
|
IsInProgress: false,
|
||||||
Fields: 'CanDelete,PrimaryImageAspectRatio'
|
Fields: 'CanDelete,PrimaryImageAspectRatio',
|
||||||
|
EnableTotalRecordCount: false
|
||||||
|
|
||||||
}).then(function (result) {
|
}).then(function (result) {
|
||||||
|
|
||||||
|
|
|
@ -697,7 +697,8 @@
|
||||||
userId: userId,
|
userId: userId,
|
||||||
limit: 5,
|
limit: 5,
|
||||||
Fields: "PrimaryImageAspectRatio,SyncInfo",
|
Fields: "PrimaryImageAspectRatio,SyncInfo",
|
||||||
IsInProgress: false
|
IsInProgress: false,
|
||||||
|
EnableTotalRecordCount: false
|
||||||
|
|
||||||
}).then(function (result) {
|
}).then(function (result) {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue