Refactored the bulk edit controller.

This commit is contained in:
James Cole
2019-07-04 17:31:47 +02:00
parent 54623061d8
commit 3c5c14ff5a
16 changed files with 432 additions and 170 deletions

View File

@@ -24,4 +24,22 @@ $(document).ready(function () {
"use strict";
initTagsAC();
initCategoryAC();
// on change, remove the checkbox.
$('input[name="category"]').change(function () {
$('input[name="ignore_category"]').attr('checked', false);
});
$('select[name="budget_id"]').change(function () {
$('input[name="ignore_budget"]').attr('checked', false);
});
$('input[name="tags"]').on('itemAdded', function(event) {
$('input[name="ignore_tags"]').attr('checked', false);
});
});