mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-25 06:51:08 +00:00
Fix #5144
This commit is contained in:
6
public/v1/js/ff/rules/create-edit.js
vendored
6
public/v1/js/ff/rules/create-edit.js
vendored
@@ -119,8 +119,8 @@ function addNewAction() {
|
|||||||
*/
|
*/
|
||||||
function removeTrigger(e) {
|
function removeTrigger(e) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var target = $(e.target);
|
var target = $(e.currentTarget);
|
||||||
if (target.prop("tagName") === "I") {
|
if (target.prop("tagName") === "SPAN") {
|
||||||
target = target.parent();
|
target = target.parent();
|
||||||
}
|
}
|
||||||
// remove grand parent:
|
// remove grand parent:
|
||||||
@@ -141,7 +141,7 @@ function removeTrigger(e) {
|
|||||||
function removeAction(e) {
|
function removeAction(e) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var target = $(e.target);
|
var target = $(e.target);
|
||||||
if (target.prop("tagName") === "I") {
|
if (target.prop("tagName") === "SPAN") {
|
||||||
target = target.parent();
|
target = target.parent();
|
||||||
}
|
}
|
||||||
// remove grand parent:
|
// remove grand parent:
|
||||||
|
Reference in New Issue
Block a user