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

@ -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);