mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
merge from dev
This commit is contained in:
parent
1c8f02ce0f
commit
33b01d778c
911 changed files with 34157 additions and 57125 deletions
|
@ -15,19 +15,20 @@
|
|||
|
||||
function loadTemplate(page, type, providerId) {
|
||||
|
||||
HttpClient.send({
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.open('GET', 'components/tvproviders/' + type + '.template.html', true);
|
||||
|
||||
type: 'GET',
|
||||
url: 'components/tvproviders/' + type + '.template.html'
|
||||
|
||||
}).done(function (html) {
|
||||
xhr.onload = function (e) {
|
||||
|
||||
var html = this.response;
|
||||
var elem = page.querySelector('.providerTemplate');
|
||||
elem.innerHTML = Globalize.translateDocument(html);
|
||||
$(elem).trigger('create');
|
||||
|
||||
init(page, type, providerId);
|
||||
});
|
||||
}
|
||||
|
||||
xhr.send();
|
||||
}
|
||||
|
||||
$(document).on('pageshow', "#liveTvGuideProviderPage", function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue