Make sure all date fields have a fallback.

This commit is contained in:
James Cole
2017-01-20 08:18:52 +01:00
parent 61d58a354e
commit 19eef71133
23 changed files with 278 additions and 3 deletions

View File

@@ -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'
}
);
}
});