mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Creating and editing an account now allows the opening balance to be set in a certain currency. Issue #37
This commit is contained in:
@@ -10,11 +10,11 @@ function currencySelect(e) {
|
||||
var code = target.data('code');
|
||||
var id = target.data('id');
|
||||
var fieldType = target.data('field');
|
||||
var menu = $('.' + fieldType + 'currencyDropdown');
|
||||
var menu = $('.' + fieldType + 'CurrencyDropdown');
|
||||
|
||||
var symbolHolder = $('#' + fieldType + 'CurrentSymbol');
|
||||
symbolHolder.text(symbol);
|
||||
$('input[name="amount_currency_id"]').val(id);
|
||||
$('input[name="' + fieldType + '_currency_id"]').val(id);
|
||||
|
||||
// close dropdown (hack hack)
|
||||
menu.click();
|
||||
|
Reference in New Issue
Block a user