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

update delete smart match entry

This commit is contained in:
Luke Pulverenti 2016-02-13 01:19:28 -05:00
parent 0a7c782beb
commit e7448d6369
3 changed files with 13 additions and 23 deletions

View file

@ -16,12 +16,12 @@
},
"devDependencies": {},
"ignore": [],
"version": "1.0.35",
"_release": "1.0.35",
"version": "1.0.36",
"_release": "1.0.36",
"_resolution": {
"type": "version",
"tag": "1.0.35",
"commit": "d84b62c2a98faed179e07ef805e54cd7e6d2e036"
"tag": "1.0.36",
"commit": "2fd64dfab638287a62d38c400d3e738a67e80198"
},
"_source": "git://github.com/MediaBrowser/Emby.ApiClient.Javascript.git",
"_target": "~1.0.3",

View file

@ -1127,16 +1127,6 @@
});
};
self.performMovieOrganization = function (id, options) {
var url = self.getUrl("Library/FileOrganizations/" + id + "/Movie/Organize", options || {});
return self.ajax({
type: "POST",
url: url
});
};
self.getLiveTvSeriesTimer = function (id) {
if (!id) {
@ -3438,12 +3428,12 @@
});
};
self.deleteSmartMatchEntry = function (name, options) {
self.deleteSmartMatchEntries = function (entries) {
var url = self.getUrl("Library/FileOrganizations/SmartMatches", options || {});
var url = self.getUrl("Library/FileOrganizations/SmartMatches");
var postData = {
Name: name
Entries: entries
};
return self.ajax({

View file

@ -105,14 +105,14 @@
$('.divMatchInfos', page).on('click', '.btnDeleteMatchEntry', function () {
var button = this;
var id = button.getAttribute('data-id');
var options = {
var entries = [
{
Name: button.getAttribute('data-id'),
Value: button.getAttribute('data-matchstring')
}];
MatchString: button.getAttribute('data-matchstring')
};
ApiClient.deleteSmartMatchEntry(id, options).then(function () {
ApiClient.deleteSmartMatchEntries(entries).then(function () {
reloadList(page);