mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 23:45:10 +00:00
Improve recurrences
This commit is contained in:
25
public/v1/js/ff/recurring/create.js
vendored
25
public/v1/js/ff/recurring/create.js
vendored
@@ -183,7 +183,8 @@ function updateFormFields() {
|
||||
|
||||
if (transactionType === 'withdrawal') {
|
||||
// hide source account name:
|
||||
$('#source_name_holder').hide();
|
||||
// $('#source_name_holder').hide(); // source_name no longer exists
|
||||
$('#deposit_source_id_holder').hide(); // new one!
|
||||
|
||||
// show source account ID:
|
||||
$('#source_id_holder').show();
|
||||
@@ -192,7 +193,8 @@ function updateFormFields() {
|
||||
$('#destination_id_holder').hide();
|
||||
|
||||
// show destination name:
|
||||
$('#destination_name_holder').show();
|
||||
//$('#destination_name_holder').show(); // old one
|
||||
$('#withdrawal_destination_id_holder').show();
|
||||
|
||||
// show budget
|
||||
$('#budget_id_holder').show();
|
||||
@@ -202,18 +204,29 @@ function updateFormFields() {
|
||||
}
|
||||
|
||||
if (transactionType === 'deposit') {
|
||||
$('#source_name_holder').show();
|
||||
// $('#source_name_holder').show(); // source name no longer exists.
|
||||
$('#deposit_source_id_holder').show(); // new one!
|
||||
|
||||
$('#source_id_holder').hide();
|
||||
$('#destination_name_holder').hide();
|
||||
|
||||
// $('#destination_name_holder').hide(); // old one
|
||||
$('#withdrawal_destination_id_holder').hide();
|
||||
|
||||
|
||||
$('#destination_id_holder').show();
|
||||
$('#budget_id_holder').hide();
|
||||
$('#piggy_bank_id_holder').hide();
|
||||
}
|
||||
|
||||
if (transactionType === 'transfer') {
|
||||
$('#source_name_holder').hide();
|
||||
// $('#source_name_holder').hide(); // source name no longer exists.
|
||||
$('#deposit_source_id_holder').hide(); // new one!
|
||||
|
||||
$('#source_id_holder').show();
|
||||
$('#destination_name_holder').hide();
|
||||
|
||||
// $('#destination_name_holder').hide(); // old one
|
||||
$('#withdrawal_destination_id_holder').hide();
|
||||
|
||||
$('#destination_id_holder').show();
|
||||
$('#budget_id_holder').hide();
|
||||
$('#piggy_bank_id_holder').show();
|
||||
|
Reference in New Issue
Block a user