Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix #1828
James Coled27176c0b396
diff --git a/public/v1/js/ff/accounts/create.js b/public/v1/js/ff/accounts/create.jsindex bff8a0c275..073fc4e58e 100644--- a/public/v1/js/ff/accounts/create.js+++ b/public/v1/js/ff/accounts/create.js@@ -22,6 +22,7 @@$(document).ready(function () {"use strict";+ $(".content-wrapper form input:enabled:visible:first").first().focus().select();if (!Modernizr.inputtypes.date) {$('input[type="date"]').datepicker({diff --git a/public/v1/js/ff/accounts/edit.js b/public/v1/js/ff/accounts/edit.jsindex fbd367bf18..3a7f24db81 100644--- a/public/v1/js/ff/accounts/edit.js+++ b/public/v1/js/ff/accounts/edit.js@@ -22,6 +22,7 @@$(document).ready(function () {"use strict";+ $(".content-wrapper form input:enabled:visible:first").first().focus().select();if (!Modernizr.inputtypes.date) {$('input[type="date"]').datepicker({diff --git a/public/v1/js/ff/bills/create.js b/public/v1/js/ff/bills/create.jsindex 2e679a5de7..3fe5910c90 100644--- a/public/v1/js/ff/bills/create.js+++ b/public/v1/js/ff/bills/create.js@@ -22,6 +22,7 @@$(document).ready(function () {"use strict";+ $(".content-wrapper form input:enabled:visible:first").first().focus().select();if (!Modernizr.inputtypes.date) {$('input[type="date"]').datepicker({diff --git a/public/v1/js/ff/bills/edit.js b/public/v1/js/ff/bills/edit.jsindex eacac841c7..73999727ca 100644--- a/public/v1/js/ff/bills/edit.js+++ b/public/v1/js/ff/bills/edit.js@@ -22,6 +22,7 @@$(document).ready(function () {"use strict";+ $(".content-wrapper form input:enabled:visible:first").first().focus().select();if (!Modernizr.inputtypes.date) {$('input[type="date"]').datepicker({diff --git a/public/v1/js/ff/budgets/create.js b/public/v1/js/ff/budgets/create.jsnew file mode 100644index 0000000000..9881ca0859--- /dev/null+++ b/public/v1/js/ff/budgets/create.js@@ -0,0 +1,24 @@+/*+ * create.js+ * Copyright (c) 2018 [email protected]+ *+ * This file is part of Firefly III.+ *+ * Firefly III is free software: you can redistribute it and/or modify+ * it under the terms of the GNU General Public License as published by+ * the Free Software Foundation, either version 3 of the License, or+ * (at your option) any later version.+ *+ * Firefly III is distributed in the hope that it will be useful,+ * but WITHOUT ANY WARRANTY; without even the implied warranty of+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+ * GNU General Public License for more details.+ *+ * You should have received a copy of the GNU General Public License+ * along with Firefly III. If not, see <http://www.gnu.org/licenses/>.+ */++$(function () {+ "use strict";+ $(".content-wrapper form input:enabled:visible:first").first().focus().select();+});\ No newline at end of filediff --git a/public/v1/js/ff/budgets/edit.js b/public/v1/js/ff/budgets/edit.jsnew file mode 100644index 0000000000..ba06d72c65--- /dev/null+++ b/public/v1/js/ff/budgets/edit.js@@ -0,0 +1,24 @@+/*+ * edit.js+ * Copyright (c) 2018 [email protected]+ *+ * This file is part of Firefly III.+ *+ * Firefly III is free software: you can redistribute it and/or modify+ * it under the terms of the GNU General Public License as published by+ * the Free Software Foundation, either version 3 of the License, or+ * (at your option) any later version.+ *+ * Firefly III is distributed in the hope that it will be useful,+ * but WITHOUT ANY WARRANTY; without even the implied warranty of+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+ * GNU General Public License for more details.+ *+ * You should have received a copy of the GNU General Public License+ * along with Firefly III. If not, see <http://www.gnu.org/licenses/>.+ */++$(function () {+ "use strict";+ $(".content-wrapper form input[type='text']:enabled:visible:first").first().focus();+});\ No newline at end of filediff --git a/public/v1/js/ff/categories/create.js b/public/v1/js/ff/categories/create.jsnew file mode 100644index 0000000000..4ccf6d1394--- /dev/null+++ b/public/v1/js/ff/categories/create.js@@ -0,0 +1,24 @@+/*+ * create.js+ * Copyright (c) 2018 [email protected]+ *+ * This file is part of Firefly III.+ *+ * Firefly III is free software: you can redistribute it and/or modify+ * it under the terms of the GNU General Public License as published by+ * the Free Software Foundation, either version 3 of the License, or+ * (at your option) any later version.+ *+ * Firefly III is distributed in the hope that it will be useful,+ * but WITHOUT ANY WARRANTY; without even the implied warranty of+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+ * GNU General Public License for more details.+ *+ * You should have received a copy of the GNU General Public License+ * along with Firefly III. If not, see <http://www.gnu.org/licenses/>.+ */++$(function () {+ "use strict";+ $(".content-wrapper form input:enabled:visible:first").first().focus().select();+});diff --git a/public/v1/js/ff/categories/edit.js b/public/v1/js/ff/categories/edit.jsnew file mode 100644index 0000000000..ba06d72c65--- /dev/null+++ b/public/v1/js/ff/categories/edit.js@@ -0,0 +1,24 @@+/*+ * edit.js+ * Copyright (c) 2018 [email protected]+ *+ * This file is part of Firefly III.+ *+ * Firefly III is free software: you can redistribute it and/or modify+ * it under the terms of the GNU General Public License as published by+ * the Free Software Foundation, either version 3 of the License, or+ * (at your option) any later version.+ *+ * Firefly III is distributed in the hope that it will be useful,+ * but WITHOUT ANY WARRANTY; without even the implied warranty of+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+ * GNU General Public License for more details.+ *+ * You should have received a copy of the GNU General Public License+ * along with Firefly III. If not, see <http://www.gnu.org/licenses/>.+ */++$(function () {+ "use strict";+ $(".content-wrapper form input[type='text']:enabled:visible:first").first().focus();+});\ No newline at end of filediff --git a/public/v1/js/ff/piggy-banks/create.js b/public/v1/js/ff/piggy-banks/create.jsindex 2e679a5de7..3fe5910c90 100644--- a/public/v1/js/ff/piggy-banks/create.js+++ b/public/v1/js/ff/piggy-banks/create.js@@ -22,6 +22,7 @@$(document).ready(function () {"use strict";+ $(".content-wrapper form input:enabled:visible:first").first().focus().select();if (!Modernizr.inputtypes.date) {$('input[type="date"]').datepicker({diff --git a/public/v1/js/ff/piggy-banks/edit.js b/public/v1/js/ff/piggy-banks/edit.jsindex eacac841c7..73999727ca 100644--- a/public/v1/js/ff/piggy-banks/edit.js+++ b/public/v1/js/ff/piggy-banks/edit.js@@ -22,6 +22,7 @@$(document).ready(function () {"use strict";+ $(".content-wrapper form input:enabled:visible:first").first().focus().select();if (!Modernizr.inputtypes.date) {$('input[type="date"]').datepicker({diff --git a/public/v1/js/ff/recurring/create.js b/public/v1/js/ff/recurring/create.jsindex 8665021ce7..281c3bbc84 100644--- a/public/v1/js/ff/recurring/create.js+++ b/public/v1/js/ff/recurring/create.js@@ -24,6 +24,7 @@ var calendar;$(document).ready(function () {"use strict";+ $(".content-wrapper form input:enabled:visible:first").first().focus().select();if (!Modernizr.inputtypes.date) {$('input[type="date"]').datepicker({diff --git a/public/v1/js/ff/recurring/edit.js b/public/v1/js/ff/recurring/edit.jsindex 26a85e59da..c2c18a2ade 100644--- a/public/v1/js/ff/recurring/edit.js+++ b/public/v1/js/ff/recurring/edit.js@@ -24,6 +24,7 @@ var calendar;$(document).ready(function () {"use strict";+ $(".content-wrapper form input:enabled:visible:first").first().focus().select();if (!Modernizr.inputtypes.date) {$('input[type="date"]').datepicker({diff --git a/public/v1/js/ff/rule-groups/create.js b/public/v1/js/ff/rule-groups/create.jsnew file mode 100644index 0000000000..9decdbf81e--- /dev/null+++ b/public/v1/js/ff/rule-groups/create.js@@ -0,0 +1,25 @@+/*+ * create.js+ * Copyright (c) 2018 [email protected]+ *+ * This file is part of Firefly III.+ *+ * Firefly III is free software: you can redistribute it and/or modify+ * it under the terms of the GNU General Public License as published by+ * the Free Software Foundation, either version 3 of the License, or+ * (at your option) any later version.+ *+ * Firefly III is distributed in the hope that it will be useful,+ * but WITHOUT ANY WARRANTY; without even the implied warranty of+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+ * GNU General Public License for more details.+ *+ * You should have received a copy of the GNU General Public License+ * along with Firefly III. If not, see <http://www.gnu.org/licenses/>.+ */+++$(document).ready(function () {+ "use strict";+ $(".content-wrapper form input:enabled:visible:first").first().focus().select();+});diff --git a/public/v1/js/ff/rule-groups/edit.js b/public/v1/js/ff/rule-groups/edit.jsnew file mode 100644index 0000000000..cd1371efe4--- /dev/null+++ b/public/v1/js/ff/rule-groups/edit.js@@ -0,0 +1,25 @@+/*+ * edit.js+ * Copyright (c) 2018 [email protected]+ *+ * This file is part of Firefly III.+ *+ * Firefly III is free software: you can redistribute it and/or modify+ * it under the terms of the GNU General Public License as published by+ * the Free Software Foundation, either version 3 of the License, or+ * (at your option) any later version.+ *+ * Firefly III is distributed in the hope that it will be useful,+ * but WITHOUT ANY WARRANTY; without even the implied warranty of+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+ * GNU General Public License for more details.+ *+ * You should have received a copy of the GNU General Public License+ * along with Firefly III. If not, see <http://www.gnu.org/licenses/>.+ */+++$(document).ready(function () {+ "use strict";+ $(".content-wrapper form input[type='text']:enabled:visible:first").first().focus();+});diff --git a/public/v1/js/ff/rules/create-edit.js b/public/v1/js/ff/rules/create-edit.jsindex 8bdd9f9588..05a7a46e6a 100644--- a/public/v1/js/ff/rules/create-edit.js+++ b/public/v1/js/ff/rules/create-edit.js@@ -22,7 +22,7 @@$(function () {"use strict";-+ $(".content-wrapper form input:enabled:visible:first").first().focus().select();if (triggerCount > 0) {console.log('trigger count is larger than zero, call onAddNewTrigger.');onAddNewTrigger();diff --git a/public/v1/js/ff/tags/create-edit.js b/public/v1/js/ff/tags/create-edit.jsindex 4ac008906a..eb2fe18095 100644--- a/public/v1/js/ff/tags/create-edit.js+++ b/public/v1/js/ff/tags/create-edit.js@@ -21,6 +21,7 @@$(function () {"use strict";+ $(".content-wrapper form input:enabled:visible:first").first().focus().select();if (!Modernizr.inputtypes.date) {$('input[type="date"]').datepicker({diff --git a/resources/views/v1/budgets/create.twig b/resources/views/v1/budgets/create.twigindex 3d6b429805..93a1e618f7 100644--- a/resources/views/v1/budgets/create.twig+++ b/resources/views/v1/budgets/create.twig@@ -42,3 +42,6 @@{% endblock %}+{% block scripts %}+ <script type="text/javascript" src="v1/js/ff/budgets/create.js?v={{ FF_VERSION }}"></script>+{% endblock %}\ No newline at end of filediff --git a/resources/views/v1/budgets/edit.twig b/resources/views/v1/budgets/edit.twigindex 4c2f03c6be..7e17274c58 100644--- a/resources/views/v1/budgets/edit.twig+++ b/resources/views/v1/budgets/edit.twig@@ -40,3 +40,6 @@{{ Form.close|raw }}{% endblock %}+{% block scripts %}+ <script type="text/javascript" src="v1/js/ff/budgets/edit.js?v={{ FF_VERSION }}"></script>+{% endblock %}diff --git a/resources/views/v1/categories/create.twig b/resources/views/v1/categories/create.twigindex eda7c8f04c..4ebc15071b 100644--- a/resources/views/v1/categories/create.twig+++ b/resources/views/v1/categories/create.twig@@ -40,4 +40,6 @@</div></form>{% endblock %}-+{% block scripts %}+ <script type="text/javascript" src="v1/js/ff/budgets/create.js?v={{ FF_VERSION }}"></script>+{% endblock %}\ No newline at end of filediff --git a/resources/views/v1/categories/edit.twig b/resources/views/v1/categories/edit.twigindex 9c912d9eeb..dfc1949bcb 100644--- a/resources/views/v1/categories/edit.twig+++ b/resources/views/v1/categories/edit.twig@@ -40,3 +40,6 @@</div>{{ Form.close|raw }}{% endblock %}+{% block scripts %}+ <script type="text/javascript" src="v1/js/ff/categories/edit.js?v={{ FF_VERSION }}"></script>+{% endblock %}diff --git a/resources/views/v1/rules/rule-group/create.twig b/resources/views/v1/rules/rule-group/create.twigindex 01edaae1d1..e00d2999b3 100644--- a/resources/views/v1/rules/rule-group/create.twig+++ b/resources/views/v1/rules/rule-group/create.twig@@ -48,3 +48,6 @@</div></form>{% endblock %}+{% block scripts %}+ <script type="text/javascript" src="v1/js/ff/rule-groups/create.js?v={{ FF_VERSION }}"></script>+{% endblock %}\ No newline at end of filediff --git a/resources/views/v1/rules/rule-group/edit.twig b/resources/views/v1/rules/rule-group/edit.twigindex 6869167a79..27ec9cf84b 100644--- a/resources/views/v1/rules/rule-group/edit.twig+++ b/resources/views/v1/rules/rule-group/edit.twig@@ -52,3 +52,6 @@{{ Form.close|raw }}{% endblock %}+{% block scripts %}+ <script type="text/javascript" src="v1/js/ff/rule-groups/edit.js?v={{ FF_VERSION }}"></script>+{% endblock %}\ No newline at end of file