mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
run all ajax through apiclient
This commit is contained in:
parent
683e6f472c
commit
db0a6eb632
28 changed files with 55 additions and 46 deletions
|
@ -42,7 +42,7 @@
|
|||
|
||||
var channelId = getParameterByName('id');
|
||||
|
||||
$.getJSON(ApiClient.getUrl("Channels/" + channelId + "/Features", query)).done(function (features) {
|
||||
ApiClient.getJSON(ApiClient.getUrl("Channels/" + channelId + "/Features", query)).done(function (features) {
|
||||
|
||||
if (features.CanFilter) {
|
||||
|
||||
|
@ -121,7 +121,7 @@
|
|||
|
||||
query.folderId = folderId;
|
||||
|
||||
$.getJSON(ApiClient.getUrl("Channels/" + channelId + "/Items", query)).done(function (result) {
|
||||
ApiClient.getJSON(ApiClient.getUrl("Channels/" + channelId + "/Items", query)).done(function (result) {
|
||||
|
||||
// Scroll back up so they can see the results from the beginning
|
||||
$(document).scrollTop(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue