This commit is contained in:
James Cole 2021-10-01 04:58:10 +02:00
parent c4dbc2bc7f
commit d447f5f9d7
No known key found for this signature in database
GPG Key ID: BDE6667570EADBD5

View File

@ -119,8 +119,8 @@ function addNewAction() {
*/
function removeTrigger(e) {
"use strict";
var target = $(e.target);
if (target.prop("tagName") === "I") {
var target = $(e.currentTarget);
if (target.prop("tagName") === "SPAN") {
target = target.parent();
}
// remove grand parent:
@ -141,7 +141,7 @@ function removeTrigger(e) {
function removeAction(e) {
"use strict";
var target = $(e.target);
if (target.prop("tagName") === "I") {
if (target.prop("tagName") === "SPAN") {
target = target.parent();
}
// remove grand parent: