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

update sync

This commit is contained in:
Luke Pulverenti 2016-08-16 01:34:36 -04:00
parent d0aee5580a
commit 0e2b46b686
47 changed files with 309 additions and 145 deletions

View file

@ -3363,23 +3363,16 @@
self.cancelSyncItems = function (itemIds, targetId) {
if (!userId) {
throw new Error("null userId");
if (!itemIds) {
throw new Error("null itemIds");
}
if (!itemId) {
throw new Error("null itemId");
}
var url = self.getUrl("Sync/Items/Cancel");
var url = self.getUrl("Sync/" + (targetId || self.deviceId()) + "/Items", {
ItemIds: itemIds.join(',')
});
return self.ajax({
type: "POST",
data: JSON.stringify({
TargetId: targetId || self.deviceId(),
ItemIds: itemIds
}),
contentType: "application/json",
type: "DELETE",
url: url
});
};