mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-22 20:36:43 +00:00
Make sure all date fields have a fallback.
This commit is contained in:
20
public/js/ff/accounts/create.js
Normal file
20
public/js/ff/accounts/create.js
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
/*
|
||||||
|
* 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 */
|
||||||
|
|
||||||
|
$(document).ready(function () {
|
||||||
|
"use strict";
|
||||||
|
if (!Modernizr.inputtypes.date) {
|
||||||
|
$('input[type="date"]').datepicker(
|
||||||
|
{
|
||||||
|
dateFormat: 'yy-mm-dd'
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
});
|
20
public/js/ff/accounts/edit.js
Normal file
20
public/js/ff/accounts/edit.js
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
/*
|
||||||
|
* 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 */
|
||||||
|
|
||||||
|
$(document).ready(function () {
|
||||||
|
"use strict";
|
||||||
|
if (!Modernizr.inputtypes.date) {
|
||||||
|
$('input[type="date"]').datepicker(
|
||||||
|
{
|
||||||
|
dateFormat: 'yy-mm-dd'
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
});
|
20
public/js/ff/bills/create.js
Normal file
20
public/js/ff/bills/create.js
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
/*
|
||||||
|
* 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 */
|
||||||
|
|
||||||
|
$(document).ready(function () {
|
||||||
|
"use strict";
|
||||||
|
if (!Modernizr.inputtypes.date) {
|
||||||
|
$('input[type="date"]').datepicker(
|
||||||
|
{
|
||||||
|
dateFormat: 'yy-mm-dd'
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
});
|
20
public/js/ff/bills/edit.js
Normal file
20
public/js/ff/bills/edit.js
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
/*
|
||||||
|
* 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 */
|
||||||
|
|
||||||
|
$(document).ready(function () {
|
||||||
|
"use strict";
|
||||||
|
if (!Modernizr.inputtypes.date) {
|
||||||
|
$('input[type="date"]').datepicker(
|
||||||
|
{
|
||||||
|
dateFormat: 'yy-mm-dd'
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
});
|
@@ -8,7 +8,7 @@
|
|||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** global: jobKey */
|
/** global: jobKey, Modernizr */
|
||||||
|
|
||||||
var intervalId = 0;
|
var intervalId = 0;
|
||||||
|
|
||||||
@@ -21,6 +21,14 @@ $(function () {
|
|||||||
// - return false,
|
// - return false,
|
||||||
|
|
||||||
$('#export').submit(startExport);
|
$('#export').submit(startExport);
|
||||||
|
|
||||||
|
if (!Modernizr.inputtypes.date) {
|
||||||
|
$('input[type="date"]').datepicker(
|
||||||
|
{
|
||||||
|
dateFormat: 'yy-mm-dd'
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
20
public/js/ff/piggy-banks/create.js
Normal file
20
public/js/ff/piggy-banks/create.js
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
/*
|
||||||
|
* 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 */
|
||||||
|
|
||||||
|
$(document).ready(function () {
|
||||||
|
"use strict";
|
||||||
|
if (!Modernizr.inputtypes.date) {
|
||||||
|
$('input[type="date"]').datepicker(
|
||||||
|
{
|
||||||
|
dateFormat: 'yy-mm-dd'
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
});
|
20
public/js/ff/piggy-banks/edit.js
Normal file
20
public/js/ff/piggy-banks/edit.js
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
/*
|
||||||
|
* 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 */
|
||||||
|
|
||||||
|
$(document).ready(function () {
|
||||||
|
"use strict";
|
||||||
|
if (!Modernizr.inputtypes.date) {
|
||||||
|
$('input[type="date"]').datepicker(
|
||||||
|
{
|
||||||
|
dateFormat: 'yy-mm-dd'
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
});
|
20
public/js/ff/preferences/index.js
Normal file
20
public/js/ff/preferences/index.js
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
/*
|
||||||
|
* 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 */
|
||||||
|
|
||||||
|
$(document).ready(function () {
|
||||||
|
"use strict";
|
||||||
|
if (!Modernizr.inputtypes.date) {
|
||||||
|
$('input[type="date"]').datepicker(
|
||||||
|
{
|
||||||
|
dateFormat: 'yy-mm-dd'
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
});
|
20
public/js/ff/rules/select-transactions.js
Normal file
20
public/js/ff/rules/select-transactions.js
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
/*
|
||||||
|
* 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 */
|
||||||
|
|
||||||
|
$(document).ready(function () {
|
||||||
|
"use strict";
|
||||||
|
if (!Modernizr.inputtypes.date) {
|
||||||
|
$('input[type="date"]').datepicker(
|
||||||
|
{
|
||||||
|
dateFormat: 'yy-mm-dd'
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
});
|
@@ -5,12 +5,19 @@
|
|||||||
*
|
*
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
/** global: zoomLevel, latitude, longitude, google, apiKey, doPlaceMarker */
|
/** global: zoomLevel, latitude, longitude, google, apiKey, doPlaceMarker, Modernizr */
|
||||||
|
|
||||||
$(function () {
|
$(function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
$('#clearLocation').click(clearLocation);
|
$('#clearLocation').click(clearLocation);
|
||||||
|
if (!Modernizr.inputtypes.date) {
|
||||||
|
$('input[type="date"]').datepicker(
|
||||||
|
{
|
||||||
|
dateFormat: 'yy-mm-dd'
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/** global: originalSum, accounting, what */
|
/** global: originalSum, accounting, what, Modernizr */
|
||||||
|
|
||||||
var destAccounts = {};
|
var destAccounts = {};
|
||||||
var srcAccounts = {};
|
var srcAccounts = {};
|
||||||
@@ -57,6 +57,14 @@ $(document).ready(function () {
|
|||||||
|
|
||||||
|
|
||||||
$('input[name$="][amount]"]').on('input', calculateSum);
|
$('input[name$="][amount]"]').on('input', calculateSum);
|
||||||
|
|
||||||
|
if (!Modernizr.inputtypes.date) {
|
||||||
|
$('input[type="date"]').datepicker(
|
||||||
|
{
|
||||||
|
dateFormat: 'yy-mm-dd'
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
@@ -67,3 +67,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
{% block scripts %}
|
||||||
|
<script type="text/javascript" src="js/lib/modernizr-custom.js"></script>
|
||||||
|
<script type="text/javascript" src="js/lib/jquery-ui.min.js"></script>
|
||||||
|
<script type="text/javascript" src="js/ff/accounts/create.js"></script>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block styles %}
|
||||||
|
<link href="css/jquery-ui/jquery-ui.structure.min.css" type="text/css" rel="stylesheet" media="all">
|
||||||
|
<link href="css/jquery-ui/jquery-ui.theme.min.css" type="text/css" rel="stylesheet" media="all">
|
||||||
|
{% endblock %}
|
@@ -77,3 +77,13 @@
|
|||||||
</div>
|
</div>
|
||||||
{{ Form.close|raw }}
|
{{ Form.close|raw }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
{% block scripts %}
|
||||||
|
<script type="text/javascript" src="js/lib/modernizr-custom.js"></script>
|
||||||
|
<script type="text/javascript" src="js/lib/jquery-ui.min.js"></script>
|
||||||
|
<script type="text/javascript" src="js/ff/accounts/edit.js"></script>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block styles %}
|
||||||
|
<link href="css/jquery-ui/jquery-ui.structure.min.css" type="text/css" rel="stylesheet" media="all">
|
||||||
|
<link href="css/jquery-ui/jquery-ui.theme.min.css" type="text/css" rel="stylesheet" media="all">
|
||||||
|
{% endblock %}
|
@@ -61,7 +61,12 @@
|
|||||||
|
|
||||||
{% block styles %}
|
{% block styles %}
|
||||||
<link href="css/bootstrap-tagsinput.css" type="text/css" rel="stylesheet" media="all">
|
<link href="css/bootstrap-tagsinput.css" type="text/css" rel="stylesheet" media="all">
|
||||||
|
<link href="css/jquery-ui/jquery-ui.structure.min.css" type="text/css" rel="stylesheet" media="all">
|
||||||
|
<link href="css/jquery-ui/jquery-ui.theme.min.css" type="text/css" rel="stylesheet" media="all">
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
<script type="text/javascript" src="js/lib/bootstrap-tagsinput.min.js"></script>
|
<script type="text/javascript" src="js/lib/bootstrap-tagsinput.min.js"></script>
|
||||||
|
<script type="text/javascript" src="js/lib/modernizr-custom.js"></script>
|
||||||
|
<script type="text/javascript" src="js/lib/jquery-ui.min.js"></script>
|
||||||
|
<script type="text/javascript" src="js/ff/bills/create.js"></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@@ -60,7 +60,12 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block styles %}
|
{% block styles %}
|
||||||
<link href="css/bootstrap-tagsinput.css" type="text/css" rel="stylesheet" media="all">
|
<link href="css/bootstrap-tagsinput.css" type="text/css" rel="stylesheet" media="all">
|
||||||
|
<link href="css/jquery-ui/jquery-ui.structure.min.css" type="text/css" rel="stylesheet" media="all">
|
||||||
|
<link href="css/jquery-ui/jquery-ui.theme.min.css" type="text/css" rel="stylesheet" media="all">
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
<script type="text/javascript" src="js/lib/bootstrap-tagsinput.min.js"></script>
|
<script type="text/javascript" src="js/lib/bootstrap-tagsinput.min.js"></script>
|
||||||
|
<script type="text/javascript" src="js/lib/modernizr-custom.js"></script>
|
||||||
|
<script type="text/javascript" src="js/lib/jquery-ui.min.js"></script>
|
||||||
|
<script type="text/javascript" src="js/ff/accounts/edit.js"></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@@ -100,5 +100,11 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var jobKey = "{{ job.key|escape }}";
|
var jobKey = "{{ job.key|escape }}";
|
||||||
</script>
|
</script>
|
||||||
|
<script type="text/javascript" src="js/lib/modernizr-custom.js"></script>
|
||||||
|
<script type="text/javascript" src="js/lib/jquery-ui.min.js"></script>
|
||||||
<script type="text/javascript" src="js/ff/export/index.js"></script>
|
<script type="text/javascript" src="js/ff/export/index.js"></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
{% block styles %}
|
||||||
|
<link href="css/jquery-ui/jquery-ui.structure.min.css" type="text/css" rel="stylesheet" media="all">
|
||||||
|
<link href="css/jquery-ui/jquery-ui.theme.min.css" type="text/css" rel="stylesheet" media="all">
|
||||||
|
{% endblock %}
|
@@ -54,3 +54,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
{% block scripts %}
|
||||||
|
<script type="text/javascript" src="js/lib/modernizr-custom.js"></script>
|
||||||
|
<script type="text/javascript" src="js/lib/jquery-ui.min.js"></script>
|
||||||
|
<script type="text/javascript" src="js/ff/piggy-banks/create.js"></script>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block styles %}
|
||||||
|
<link href="css/jquery-ui/jquery-ui.structure.min.css" type="text/css" rel="stylesheet" media="all">
|
||||||
|
<link href="css/jquery-ui/jquery-ui.theme.min.css" type="text/css" rel="stylesheet" media="all">
|
||||||
|
{% endblock %}
|
@@ -56,3 +56,13 @@
|
|||||||
</div>
|
</div>
|
||||||
{{ Form.close|raw }}
|
{{ Form.close|raw }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
{% block scripts %}
|
||||||
|
<script type="text/javascript" src="js/lib/modernizr-custom.js"></script>
|
||||||
|
<script type="text/javascript" src="js/lib/jquery-ui.min.js"></script>
|
||||||
|
<script type="text/javascript" src="js/ff/piggy-banks/create.js"></script>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block styles %}
|
||||||
|
<link href="css/jquery-ui/jquery-ui.structure.min.css" type="text/css" rel="stylesheet" media="all">
|
||||||
|
<link href="css/jquery-ui/jquery-ui.theme.min.css" type="text/css" rel="stylesheet" media="all">
|
||||||
|
{% endblock %}
|
@@ -272,3 +272,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
{% block scripts %}
|
||||||
|
<script type="text/javascript" src="js/lib/modernizr-custom.js"></script>
|
||||||
|
<script type="text/javascript" src="js/lib/jquery-ui.min.js"></script>
|
||||||
|
<script type="text/javascript" src="js/ff/preferences/index.js"></script>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block styles %}
|
||||||
|
<link href="css/jquery-ui/jquery-ui.structure.min.css" type="text/css" rel="stylesheet" media="all">
|
||||||
|
<link href="css/jquery-ui/jquery-ui.theme.min.css" type="text/css" rel="stylesheet" media="all">
|
||||||
|
{% endblock %}
|
@@ -40,3 +40,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
{% block scripts %}
|
||||||
|
<script type="text/javascript" src="js/lib/modernizr-custom.js"></script>
|
||||||
|
<script type="text/javascript" src="js/lib/jquery-ui.min.js"></script>
|
||||||
|
<script type="text/javascript" src="js/ff/rules/select-transactions.js"></script>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block styles %}
|
||||||
|
<link href="css/jquery-ui/jquery-ui.structure.min.css" type="text/css" rel="stylesheet" media="all">
|
||||||
|
<link href="css/jquery-ui/jquery-ui.theme.min.css" type="text/css" rel="stylesheet" media="all">
|
||||||
|
{% endblock %}
|
@@ -84,5 +84,11 @@
|
|||||||
|
|
||||||
</script>
|
</script>
|
||||||
<script src="https://maps.googleapis.com/maps/api/js?v=3&key={{ apiKey }}"></script>
|
<script src="https://maps.googleapis.com/maps/api/js?v=3&key={{ apiKey }}"></script>
|
||||||
|
<script type="text/javascript" src="js/lib/modernizr-custom.js"></script>
|
||||||
|
<script type="text/javascript" src="js/lib/jquery-ui.min.js"></script>
|
||||||
<script src="js/ff/tags/create-edit.js"></script>
|
<script src="js/ff/tags/create-edit.js"></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
{% block styles %}
|
||||||
|
<link href="css/jquery-ui/jquery-ui.structure.min.css" type="text/css" rel="stylesheet" media="all">
|
||||||
|
<link href="css/jquery-ui/jquery-ui.theme.min.css" type="text/css" rel="stylesheet" media="all">
|
||||||
|
{% endblock %}
|
@@ -87,5 +87,11 @@
|
|||||||
|
|
||||||
</script>
|
</script>
|
||||||
<script src="https://maps.googleapis.com/maps/api/js?v=3&key={{ apiKey }}"></script>
|
<script src="https://maps.googleapis.com/maps/api/js?v=3&key={{ apiKey }}"></script>
|
||||||
|
<script type="text/javascript" src="js/lib/modernizr-custom.js"></script>
|
||||||
|
<script type="text/javascript" src="js/lib/jquery-ui.min.js"></script>
|
||||||
<script src="js/ff/tags/create-edit.js"></script>
|
<script src="js/ff/tags/create-edit.js"></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
{% block styles %}
|
||||||
|
<link href="css/jquery-ui/jquery-ui.structure.min.css" type="text/css" rel="stylesheet" media="all">
|
||||||
|
<link href="css/jquery-ui/jquery-ui.theme.min.css" type="text/css" rel="stylesheet" media="all">
|
||||||
|
{% endblock %}
|
@@ -299,6 +299,8 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block styles %}
|
{% block styles %}
|
||||||
<link href="css/bootstrap-tagsinput.css" type="text/css" rel="stylesheet" media="all">
|
<link href="css/bootstrap-tagsinput.css" type="text/css" rel="stylesheet" media="all">
|
||||||
|
<link href="css/jquery-ui/jquery-ui.structure.min.css" type="text/css" rel="stylesheet" media="all">
|
||||||
|
<link href="css/jquery-ui/jquery-ui.theme.min.css" type="text/css" rel="stylesheet" media="all">
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
@@ -307,5 +309,7 @@
|
|||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="js/lib/bootstrap3-typeahead.min.js"></script>
|
<script type="text/javascript" src="js/lib/bootstrap3-typeahead.min.js"></script>
|
||||||
<script type="text/javascript" src="js/lib/bootstrap-tagsinput.min.js"></script>
|
<script type="text/javascript" src="js/lib/bootstrap-tagsinput.min.js"></script>
|
||||||
|
<script type="text/javascript" src="js/lib/jquery-ui.min.js"></script>
|
||||||
|
<script type="text/javascript" src="js/lib/modernizr-custom.js"></script>
|
||||||
<script type="text/javascript" src="js/ff/transactions/split/edit.js"></script>
|
<script type="text/javascript" src="js/ff/transactions/split/edit.js"></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Reference in New Issue
Block a user