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
|
@ -29,7 +29,7 @@
|
|||
var url = id ? 'Dlna/Profiles/' + id :
|
||||
'Dlna/Profiles/Default';
|
||||
|
||||
return $.getJSON(ApiClient.getUrl(url));
|
||||
return ApiClient.getJSON(ApiClient.getUrl(url));
|
||||
}
|
||||
|
||||
function renderProfile(page, profile, users) {
|
||||
|
@ -627,7 +627,7 @@
|
|||
|
||||
if (id) {
|
||||
|
||||
$.ajax({
|
||||
ApiClient.ajax({
|
||||
type: "POST",
|
||||
url: ApiClient.getUrl("Dlna/Profiles/" + id),
|
||||
data: JSON.stringify(profile),
|
||||
|
@ -639,7 +639,7 @@
|
|||
|
||||
} else {
|
||||
|
||||
$.ajax({
|
||||
ApiClient.ajax({
|
||||
type: "POST",
|
||||
url: ApiClient.getUrl("Dlna/Profiles"),
|
||||
data: JSON.stringify(profile),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue