mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix #1140
This commit is contained in:
parent
bc4d801c12
commit
9a26d6d49f
2
public/js/ff/accounts/edit-reconciliation.js
vendored
2
public/js/ff/accounts/edit-reconciliation.js
vendored
@ -32,7 +32,7 @@ $(document).ready(function () {
|
||||
function setAutocompletes() {
|
||||
|
||||
$.getJSON('json/categories').done(function (data) {
|
||||
$('input[name="category"]').typeahead({source: data});
|
||||
$('input[name="category"]').typeahead({source: data, autoSelect: false});
|
||||
});
|
||||
|
||||
$.getJSON('json/tags').done(function (data) {
|
||||
|
2
public/js/ff/rules/create-edit.js
vendored
2
public/js/ff/rules/create-edit.js
vendored
@ -296,7 +296,7 @@ function updateTriggerInput(selectList) {
|
||||
function createAutoComplete(input, URI) {
|
||||
input.typeahead('destroy');
|
||||
$.getJSON(URI).done(function (data) {
|
||||
input.typeahead({source: data});
|
||||
input.typeahead({source: data, autoSelect: false});
|
||||
});
|
||||
|
||||
}
|
||||
|
13
public/js/ff/transactions/mass/edit-bulk.js
vendored
13
public/js/ff/transactions/mass/edit-bulk.js
vendored
@ -24,17 +24,16 @@ $(document).ready(function () {
|
||||
"use strict";
|
||||
|
||||
$.getJSON('json/categories').done(function (data) {
|
||||
$('input[name="category"]').typeahead({source: data});
|
||||
$('input[name="category"]').typeahead({source: data, autoSelect: false});
|
||||
});
|
||||
|
||||
$.getJSON('json/tags').done(function (data) {
|
||||
var opt = {
|
||||
typeahead: {
|
||||
source: data,
|
||||
afterSelect: function () {
|
||||
this.$element.val("");
|
||||
}
|
||||
}
|
||||
source: data,
|
||||
afterSelect: function () {
|
||||
this.$element.val("");
|
||||
},
|
||||
autoSelect: false
|
||||
};
|
||||
$('input[name="tags"]').tagsinput(
|
||||
opt
|
||||
|
6
public/js/ff/transactions/mass/edit.js
vendored
6
public/js/ff/transactions/mass/edit.js
vendored
@ -26,18 +26,18 @@ $(document).ready(function () {
|
||||
// destination account names:
|
||||
if ($('input[name^="destination_account_name["]').length > 0) {
|
||||
$.getJSON('json/expense-accounts').done(function (data) {
|
||||
$('input[name^="destination_account_name["]').typeahead({source: data});
|
||||
$('input[name^="destination_account_name["]').typeahead({source: data, autoSelect: false});
|
||||
});
|
||||
}
|
||||
|
||||
// source account name
|
||||
if ($('input[name^="source_account_name["]').length > 0) {
|
||||
$.getJSON('json/revenue-accounts').done(function (data) {
|
||||
$('input[name^="source_account_name["]').typeahead({source: data});
|
||||
$('input[name^="source_account_name["]').typeahead({source: data, autoSelect: false});
|
||||
});
|
||||
}
|
||||
|
||||
$.getJSON('json/categories').done(function (data) {
|
||||
$('input[name^="category["]').typeahead({source: data});
|
||||
$('input[name^="category["]').typeahead({source: data, autoSelect: false});
|
||||
});
|
||||
});
|
17
public/js/ff/transactions/single/common.js
vendored
17
public/js/ff/transactions/single/common.js
vendored
@ -47,12 +47,11 @@ function runModernizer() {
|
||||
function setCommonAutocomplete() {
|
||||
$.getJSON('json/tags').done(function (data) {
|
||||
var opt = {
|
||||
typeahead: {
|
||||
source: data,
|
||||
afterSelect: function () {
|
||||
this.$element.val("");
|
||||
}
|
||||
}
|
||||
source: data,
|
||||
afterSelect: function () {
|
||||
this.$element.val("");
|
||||
},
|
||||
autoSelect: false,
|
||||
};
|
||||
$('input[name="tags"]').tagsinput(
|
||||
opt
|
||||
@ -61,18 +60,18 @@ function setCommonAutocomplete() {
|
||||
|
||||
if ($('input[name="destination_account_name"]').length > 0) {
|
||||
$.getJSON('json/expense-accounts').done(function (data) {
|
||||
$('input[name="destination_account_name"]').typeahead({source: data});
|
||||
$('input[name="destination_account_name"]').typeahead({source: data, autoSelect: false});
|
||||
});
|
||||
}
|
||||
|
||||
if ($('input[name="source_account_name"]').length > 0) {
|
||||
$.getJSON('json/revenue-accounts').done(function (data) {
|
||||
$('input[name="source_account_name"]').typeahead({source: data});
|
||||
$('input[name="source_account_name"]').typeahead({source: data, autoSelect: false});
|
||||
});
|
||||
}
|
||||
|
||||
$.getJSON('json/categories').done(function (data) {
|
||||
$('input[name="category"]').typeahead({source: data});
|
||||
$('input[name="category"]').typeahead({source: data, autoSelect: false});
|
||||
});
|
||||
}
|
||||
|
||||
|
2
public/js/ff/transactions/single/create.js
vendored
2
public/js/ff/transactions/single/create.js
vendored
@ -98,7 +98,7 @@ function updateNativeCurrency(useAccountCurrency) {
|
||||
*/
|
||||
function updateDescription() {
|
||||
$.getJSON('json/transaction-journals/' + what).done(function (data) {
|
||||
$('input[name="description"]').typeahead('destroy').typeahead({source: data});
|
||||
$('input[name="description"]').typeahead('destroy').typeahead({source: data, autoSelect: false});
|
||||
});
|
||||
$('#ffInput_description').focus();
|
||||
}
|
||||
|
2
public/js/ff/transactions/single/edit.js
vendored
2
public/js/ff/transactions/single/edit.js
vendored
@ -94,7 +94,7 @@ function getAccountId() {
|
||||
*/
|
||||
function setAutocompletes() {
|
||||
$.getJSON('json/transaction-journals/' + what).done(function (data) {
|
||||
$('input[name="description"]').typeahead({source: data});
|
||||
$('input[name="description"]').typeahead({source: data, autoSelect: false});
|
||||
});
|
||||
}
|
||||
|
||||
|
21
public/js/ff/transactions/split/edit.js
vendored
21
public/js/ff/transactions/split/edit.js
vendored
@ -33,23 +33,23 @@ $(document).ready(function () {
|
||||
|
||||
$.getJSON('json/expense-accounts').done(function (data) {
|
||||
destAccounts = data;
|
||||
$('input[name$="destination_account_name]"]').typeahead({source: destAccounts});
|
||||
$('input[name$="destination_account_name]"]').typeahead({source: destAccounts, autoSelect: false});
|
||||
});
|
||||
|
||||
$.getJSON('json/revenue-accounts').done(function (data) {
|
||||
srcAccounts = data;
|
||||
$('input[name$="source_account_name]"]').typeahead({source: srcAccounts});
|
||||
$('input[name$="source_account_name]"]').typeahead({source: srcAccounts, autoSelect: false});
|
||||
});
|
||||
|
||||
$.getJSON('json/categories').done(function (data) {
|
||||
categories = data;
|
||||
$('input[name$="category]"]').typeahead({source: categories});
|
||||
$('input[name$="category]"]').typeahead({source: categories, autoSelect: false});
|
||||
});
|
||||
|
||||
$.getJSON('json/transaction-journals/' + what).done(function (data) {
|
||||
descriptions = data;
|
||||
$('input[name="journal_description"]').typeahead({source: descriptions});
|
||||
$('input[name$="description]"]').typeahead({source: descriptions});
|
||||
$('input[name="journal_description"]').typeahead({source: descriptions, autoSelect: false});
|
||||
$('input[name$="description]"]').typeahead({source: descriptions, autoSelect: false});
|
||||
});
|
||||
|
||||
$.getJSON('json/tags').done(function (data) {
|
||||
@ -59,7 +59,8 @@ $(document).ready(function () {
|
||||
source: data,
|
||||
afterSelect: function () {
|
||||
this.$element.val("");
|
||||
}
|
||||
},
|
||||
autoSelect: false
|
||||
}
|
||||
};
|
||||
$('input[name="tags"]').tagsinput(
|
||||
@ -114,17 +115,17 @@ function cloneDivRow() {
|
||||
|
||||
source.find('input[name$="][amount]"]').val("").on('input', calculateSum);
|
||||
if (destAccounts.length > 0) {
|
||||
source.find('input[name$="destination_account_name]"]').typeahead({source: destAccounts});
|
||||
source.find('input[name$="destination_account_name]"]').typeahead({source: destAccounts, autoSelect: false});
|
||||
}
|
||||
|
||||
if (destAccounts.length > 0) {
|
||||
source.find('input[name$="source_account_name]"]').typeahead({source: srcAccounts});
|
||||
source.find('input[name$="source_account_name]"]').typeahead({source: srcAccounts, autoSelect: false});
|
||||
}
|
||||
if (categories.length > 0) {
|
||||
source.find('input[name$="category]"]').typeahead({source: categories});
|
||||
source.find('input[name$="category]"]').typeahead({source: categories, autoSelect: false});
|
||||
}
|
||||
if (descriptions.length > 0) {
|
||||
source.find('input[name$="description]"]').typeahead({source: descriptions});
|
||||
source.find('input[name$="description]"]').typeahead({source: descriptions, autoSelect: false});
|
||||
}
|
||||
|
||||
$('div.split_row_holder').append(source);
|
||||
|
2
public/js/lib/bootstrap3-typeahead.min.js
vendored
2
public/js/lib/bootstrap3-typeahead.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user