web: keep the add button right-aligned on ctrl -

This commit is contained in:
Simon Michael 2015-02-23 23:26:49 +00:00
parent e76cc6ee47
commit abe47e81c2

View File

@ -243,7 +243,7 @@ function addformDeletePosting() {
focuslost = focuslost ||
$('#addform tr.posting:last > td:last input:last').is(':focus');
// 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 (focuslost) $('#addform tr.posting:last > td:first input:last').focus();
}