mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-22 08:56:39 -06:00
Fix #5144
This commit is contained in:
parent
c4dbc2bc7f
commit
d447f5f9d7
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) {
|
||||
"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:
|
||||
|
Loading…
Reference in New Issue
Block a user