This commit is contained in:
James Cole 2018-12-22 06:21:06 +01:00
parent 070e1e81ae
commit d27176c0b3
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
22 changed files with 174 additions and 2 deletions

View File

@ -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(
{

View File

@ -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(
{

View File

@ -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(
{

View File

@ -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(
{

24
public/v1/js/ff/budgets/create.js vendored Normal file
View File

@ -0,0 +1,24 @@
/*
* create.js
* Copyright (c) 2018 thegrumpydictator@gmail.com
*
* 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();
});

24
public/v1/js/ff/budgets/edit.js vendored Normal file
View File

@ -0,0 +1,24 @@
/*
* edit.js
* Copyright (c) 2018 thegrumpydictator@gmail.com
*
* 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();
});

24
public/v1/js/ff/categories/create.js vendored Normal file
View File

@ -0,0 +1,24 @@
/*
* create.js
* Copyright (c) 2018 thegrumpydictator@gmail.com
*
* 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();
});

24
public/v1/js/ff/categories/edit.js vendored Normal file
View File

@ -0,0 +1,24 @@
/*
* edit.js
* Copyright (c) 2018 thegrumpydictator@gmail.com
*
* 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();
});

View File

@ -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(
{

View File

@ -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(
{

View File

@ -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(
{

View File

@ -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(
{

25
public/v1/js/ff/rule-groups/create.js vendored Normal file
View File

@ -0,0 +1,25 @@
/*
* create.js
* Copyright (c) 2018 thegrumpydictator@gmail.com
*
* 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();
});

25
public/v1/js/ff/rule-groups/edit.js vendored Normal file
View File

@ -0,0 +1,25 @@
/*
* edit.js
* Copyright (c) 2018 thegrumpydictator@gmail.com
*
* 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();
});

View File

@ -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();

View File

@ -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(
{

View File

@ -42,3 +42,6 @@
{% endblock %}
{% block scripts %}
<script type="text/javascript" src="v1/js/ff/budgets/create.js?v={{ FF_VERSION }}"></script>
{% endblock %}

View File

@ -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 %}

View File

@ -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 %}

View File

@ -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 %}

View File

@ -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 %}

View File

@ -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 %}