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

update guide

This commit is contained in:
Luke Pulverenti 2016-04-26 15:33:09 -04:00
parent 7fbb1924d0
commit 9bbb9ecfb9
17 changed files with 291 additions and 56 deletions

View file

@ -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) {