mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-22 03:56:42 +00:00
24 lines
617 B
JavaScript
Vendored
24 lines
617 B
JavaScript
Vendored
/*
|
|
* 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, askReadWarning */
|
|
|
|
$(document).ready(function () {
|
|
"use strict";
|
|
if (!Modernizr.inputtypes.date) {
|
|
$('input[type="date"]').datepicker(
|
|
{
|
|
dateFormat: 'yy-mm-dd'
|
|
}
|
|
);
|
|
}
|
|
$('form.form-horizontal').on('submit', function () {
|
|
return confirm(askReadWarning);
|
|
});
|
|
});
|