mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-20 11:48:27 -06:00
31 lines
813 B
JavaScript
31 lines
813 B
JavaScript
/*
|
|
* create.js
|
|
* Copyright (c) 2017 thegrumpydictator@gmail.com
|
|
* This software may be modified and distributed under the terms of the Creative Commons Attribution-ShareAlike 4.0 International License.
|
|
*
|
|
* See the LICENSE file for details.
|
|
*/
|
|
|
|
/** global: Modernizr, currencies */
|
|
|
|
$(document).ready(function () {
|
|
"use strict";
|
|
if (!Modernizr.inputtypes.date) {
|
|
$('input[type="date"]').datepicker(
|
|
{
|
|
dateFormat: 'yy-mm-dd'
|
|
}
|
|
);
|
|
}
|
|
// on change currency drop down list:
|
|
$('#ffInput_currency_id').change(updateCurrencyItems);
|
|
updateCurrencyItems();
|
|
|
|
});
|
|
|
|
function updateCurrencyItems() {
|
|
var value = $('#ffInput_currency_id').val();
|
|
var symbol = currencies[value];
|
|
$('.non-selectable-currency-symbol').text(symbol);
|
|
}
|