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

fix search dipping into restricted channels

This commit is contained in:
Luke Pulverenti 2016-06-30 15:01:48 -04:00
parent 0005654885
commit de50f5892d
11 changed files with 24 additions and 304 deletions

View file

@ -1,4 +1,4 @@
define(['jQuery', 'paper-checkbox', 'paper-button', 'emby-input', 'paper-item-body', 'paper-icon-item', 'paper-icon-button-light'], function ($) {
define(['jQuery', 'registrationservices', 'paper-checkbox', 'paper-button', 'emby-input', 'paper-item-body', 'paper-icon-item', 'paper-icon-button-light'], function ($, registrationServices) {
return function (page, providerId, options) {
@ -8,10 +8,10 @@
if (config && id) {
var result = config.ListingProviders.filter(function(i) {
var result = config.ListingProviders.filter(function (i) {
return i.Id == id;
})[0];
if (result) {
return Promise.resolve(result);
}
@ -200,6 +200,8 @@
page.querySelector('.btnSubmitListings').classList.add('hide');
}
page.querySelector('.premiereHelp').innerHTML = Globalize.translate('XmlTvPremiere', 24);
$('form', page).on('submit', function () {
submitListingsForm();
return false;
@ -207,6 +209,11 @@
page.querySelector('#btnSelectPath').addEventListener("click", onSelectPathClick);
page.querySelector('.lnkPremiere').addEventListener('click', function (e) {
registrationServices.showPremiereInfo();
e.preventDefault();
});
page.querySelector('.chkAllTuners').addEventListener('change', function (e) {
if (e.target.checked) {
page.querySelector('.selectTunersSection').classList.add('hide');