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

Refactored organization dialog as a component

This commit is contained in:
softworkz 2016-02-12 23:42:11 +01:00
parent 4ed019b32d
commit 7835a9d3e6
7 changed files with 718 additions and 119 deletions

View file

@ -1127,6 +1127,39 @@
});
};
self.performMovieOrganization = function (id, options) {
var url = self.getUrl("Library/FileOrganizations/" + id + "/Movie/Organize", options || {});
return self.ajax({
type: "POST",
url: url
});
};
self.getSmartMatchInfos = function (options) {
options = options || {};
var url = self.getUrl("Library/FileOrganizationSmartMatch", options);
return self.ajax({
type: "GET",
url: url,
dataType: "json"
});
};
self.deleteSmartMatchEntry = function (id, options) {
var url = self.getUrl("Library/FileOrganizationSmartMatch/" + id + "/Delete", options || {});
return self.ajax({
type: "POST",
url: url
});
};
self.getLiveTvSeriesTimer = function (id) {
if (!id) {