mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-08 13:47:19 +00:00
Make sure all date fields have a fallback.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
|
||||
/** global: originalSum, accounting, what */
|
||||
/** global: originalSum, accounting, what, Modernizr */
|
||||
|
||||
var destAccounts = {};
|
||||
var srcAccounts = {};
|
||||
@@ -57,6 +57,14 @@ $(document).ready(function () {
|
||||
|
||||
|
||||
$('input[name$="][amount]"]').on('input', calculateSum);
|
||||
|
||||
if (!Modernizr.inputtypes.date) {
|
||||
$('input[type="date"]').datepicker(
|
||||
{
|
||||
dateFormat: 'yy-mm-dd'
|
||||
}
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user