Creating and editing an account now allows the opening balance to be set in a certain currency. Issue #37

This commit is contained in:
James Cole
2015-01-30 18:22:55 +01:00
parent 5a890c5c3a
commit 725f5b7110
5 changed files with 11 additions and 9 deletions

View File

@@ -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();