fix delete button in metadata editor

This commit is contained in:
Luke Pulverenti 2016-07-11 00:56:46 -04:00
parent 0850fb9c3a
commit 12fe00e76c

View File

@ -247,7 +247,7 @@
}
function removeElementFromListview(source) {
$(source).parents('paper-icon-item').remove();
$(source).parents('.listItem').remove();
}
function editPerson(context, person, index) {
@ -353,9 +353,11 @@
}
function onEditorClick(e) {
var btnRemoveFromEditorList = parentWithClass(e.target, 'btnRemoveFromEditorList');
if (btnRemoveFromEditorList) {
removeElementFromListview(btnRemoveFromEditorList);
return;
}
var btnAddTextItem = parentWithClass(e.target, 'btnAddTextItem');