mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix delete button in metadata editor
This commit is contained in:
parent
0850fb9c3a
commit
12fe00e76c
1 changed files with 3 additions and 1 deletions
|
@ -247,7 +247,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function removeElementFromListview(source) {
|
function removeElementFromListview(source) {
|
||||||
$(source).parents('paper-icon-item').remove();
|
$(source).parents('.listItem').remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
function editPerson(context, person, index) {
|
function editPerson(context, person, index) {
|
||||||
|
@ -353,9 +353,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function onEditorClick(e) {
|
function onEditorClick(e) {
|
||||||
|
|
||||||
var btnRemoveFromEditorList = parentWithClass(e.target, 'btnRemoveFromEditorList');
|
var btnRemoveFromEditorList = parentWithClass(e.target, 'btnRemoveFromEditorList');
|
||||||
if (btnRemoveFromEditorList) {
|
if (btnRemoveFromEditorList) {
|
||||||
removeElementFromListview(btnRemoveFromEditorList);
|
removeElementFromListview(btnRemoveFromEditorList);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var btnAddTextItem = parentWithClass(e.target, 'btnAddTextItem');
|
var btnAddTextItem = parentWithClass(e.target, 'btnAddTextItem');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue