mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-09 14:18:59 +00:00
Various code cleanup.
This commit is contained in:
12
public/js/ff/transactions/single/common.js
vendored
12
public/js/ff/transactions/single/common.js
vendored
@@ -149,7 +149,11 @@ function updateNativeAmount(data) {
|
||||
countConversions++;
|
||||
return;
|
||||
}
|
||||
$('#ffInput_native_amount').val(data.amount);
|
||||
console.log('Returned amount is: ' + data.amount);
|
||||
|
||||
if (data.amount !== 0) {
|
||||
$('#ffInput_native_amount').val(data.amount);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -225,5 +229,9 @@ function convertSourceToDestination() {
|
||||
* @param data
|
||||
*/
|
||||
function updateDestinationAmount(data) {
|
||||
$('#ffInput_destination_amount').val(data.amount);
|
||||
console.log('Returned amount is: ' + data.amount);
|
||||
|
||||
if (data.amount !== 0) {
|
||||
$('#ffInput_destination_amount').val(data.amount);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user