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:
parent
0a7c782beb
commit
e7448d6369
3 changed files with 13 additions and 23 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue