mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update guide
This commit is contained in:
parent
7fbb1924d0
commit
9bbb9ecfb9
17 changed files with 291 additions and 56 deletions
|
@ -588,10 +588,12 @@
|
|||
}
|
||||
}
|
||||
|
||||
fetch(baseUrl + '/tvguide.template.html', { mode: 'no-cors' }).then(function (response) {
|
||||
return response.text();
|
||||
}).then(function (template) {
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.open('GET', baseUrl + '/tvguide.template.html', true);
|
||||
|
||||
xhr.onload = function (e) {
|
||||
|
||||
var template = this.response;
|
||||
var context = options.element;
|
||||
context.innerHTML = globalize.translateDocument(template, 'core');
|
||||
|
||||
|
@ -622,7 +624,9 @@
|
|||
itemShortcuts.on(context);
|
||||
|
||||
self.refresh();
|
||||
});
|
||||
}
|
||||
|
||||
xhr.send();
|
||||
};
|
||||
|
||||
Guide.setBaseUrl = function (url) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue