mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-16 18:25:00 -06:00
Move default option to bottom.
This commit is contained in:
parent
c7fc10ac89
commit
e47d6fb3ac
@ -189,9 +189,6 @@ function updateActionInput(selectList) {
|
|||||||
var input = parent.find('input[name^="rule-action-value["]');
|
var input = parent.find('input[name^="rule-action-value["]');
|
||||||
input.removeAttr('disabled');
|
input.removeAttr('disabled');
|
||||||
switch (selectList.val()) {
|
switch (selectList.val()) {
|
||||||
default:
|
|
||||||
input.typeahead('destroy');
|
|
||||||
break;
|
|
||||||
case 'set_category':
|
case 'set_category':
|
||||||
createAutoComplete(input, 'json/categories');
|
createAutoComplete(input, 'json/categories');
|
||||||
break;
|
break;
|
||||||
@ -216,6 +213,9 @@ function updateActionInput(selectList) {
|
|||||||
case 'set_destination_account':
|
case 'set_destination_account':
|
||||||
createAutoComplete(input, 'json/all-accounts');
|
createAutoComplete(input, 'json/all-accounts');
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
input.typeahead('destroy');
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -230,9 +230,6 @@ function updateTriggerInput(selectList) {
|
|||||||
// the text input we're looking for:
|
// the text input we're looking for:
|
||||||
var input = parent.find('input[name^="rule-trigger-value["]');
|
var input = parent.find('input[name^="rule-trigger-value["]');
|
||||||
switch (selectList.val()) {
|
switch (selectList.val()) {
|
||||||
default:
|
|
||||||
input.typeahead('destroy');
|
|
||||||
break;
|
|
||||||
case 'from_account_starts':
|
case 'from_account_starts':
|
||||||
case 'from_account_ends':
|
case 'from_account_ends':
|
||||||
case 'from_account_is':
|
case 'from_account_is':
|
||||||
@ -262,6 +259,9 @@ function updateTriggerInput(selectList) {
|
|||||||
case 'description_is':
|
case 'description_is':
|
||||||
createAutoComplete(input, 'json/transaction-journals/all');
|
createAutoComplete(input, 'json/transaction-journals/all');
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
input.typeahead('destroy');
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user