This commit is contained in:
James Cole
2017-09-03 10:39:05 +02:00
parent b9f6119c68
commit 816b291ed3
9 changed files with 433 additions and 25 deletions

View File

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