mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
basic item saving
This commit is contained in:
parent
8a7dffff51
commit
8caa7a91e3
3 changed files with 66 additions and 2 deletions
16
ApiClient.js
16
ApiClient.js
|
@ -1714,6 +1714,22 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout) {
|
|||
});
|
||||
};
|
||||
|
||||
self.updateItem = function (item) {
|
||||
|
||||
if (!item) {
|
||||
throw new Error("null item");
|
||||
}
|
||||
|
||||
var url = self.getUrl("Items/" + item.Id);
|
||||
|
||||
return self.ajax({
|
||||
type: "POST",
|
||||
url: url,
|
||||
data: JSON.stringify(item),
|
||||
contentType: "application/json"
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Updates plugin security info
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue