mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-24 14:46:37 +00:00
Code for #805
This commit is contained in:
@@ -229,6 +229,7 @@ function updateTriggerInput(selectList) {
|
||||
var parent = selectList.parent().parent();
|
||||
// the text input we're looking for:
|
||||
var input = parent.find('input[name^="rule-trigger-value["]');
|
||||
input.prop('disabled', false);
|
||||
switch (selectList.val()) {
|
||||
case 'from_account_starts':
|
||||
case 'from_account_ends':
|
||||
@@ -259,6 +260,15 @@ function updateTriggerInput(selectList) {
|
||||
case 'description_is':
|
||||
createAutoComplete(input, 'json/transaction-journals/all');
|
||||
break;
|
||||
case 'has_no_category':
|
||||
case 'has_any_category':
|
||||
case 'has_no_budget':
|
||||
case 'has_any_budget':
|
||||
case 'has_no_tag':
|
||||
case 'has_any_tag':
|
||||
input.prop('disabled', true);
|
||||
input.typeahead('destroy');
|
||||
break;
|
||||
default:
|
||||
input.typeahead('destroy');
|
||||
break;
|
||||
|
Reference in New Issue
Block a user