mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-26 03:42:25 +03:00
web: keep the add button right-aligned on ctrl -
This commit is contained in:
parent
e76cc6ee47
commit
abe47e81c2
@ -243,7 +243,7 @@ function addformDeletePosting() {
|
|||||||
focuslost = focuslost ||
|
focuslost = focuslost ||
|
||||||
$('#addform tr.posting:last > td:last input:last').is(':focus');
|
$('#addform tr.posting:last > td:last input:last').is(':focus');
|
||||||
// replace new last row's amount field with the button
|
// replace new last row's amount field with the button
|
||||||
$('#addform tr.posting:last > td:last').html(btn);
|
$('#addform tr.posting:last > td:last').css('text-align','right').html(btn);
|
||||||
// if deleted row had focus, focus the new last row
|
// if deleted row had focus, focus the new last row
|
||||||
if (focuslost) $('#addform tr.posting:last > td:first input:last').focus();
|
if (focuslost) $('#addform tr.posting:last > td:first input:last').focus();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user