mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-02 12:17:22 -06:00
Fix for #1509
This commit is contained in:
parent
5b0e61033c
commit
59f5b38dca
6
public/js/ff/transactions/split/edit.js
vendored
6
public/js/ff/transactions/split/edit.js
vendored
@ -100,6 +100,12 @@ function removeDivRow(e) {
|
||||
}
|
||||
var row = $(e.target);
|
||||
var index = row.data('split');
|
||||
if (typeof index === 'undefined') {
|
||||
var parent = row.parent();
|
||||
index = parent.data('split');
|
||||
console.log('Parent. ' + parent.className);
|
||||
}
|
||||
console.log('Split index is "' + index + '"');
|
||||
$('div.split_row[data-split="' + index + '"]').remove();
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user