From: deb.monish Date: Mon, 4 Dec 2017 20:59:01 +0000 (+0530) Subject: CRM-21499: Add filter for tagset page X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2db234f9a11528059185aef2c80039d7e14a7b66;p=civicrm-core.git CRM-21499: Add filter for tagset page --- diff --git a/templates/CRM/Tag/Page/Tag.tpl b/templates/CRM/Tag/Page/Tag.tpl index 3182d28866..3d271d1713 100644 --- a/templates/CRM/Tag/Page/Tag.tpl +++ b/templates/CRM/Tag/Page/Tag.tpl @@ -196,6 +196,7 @@ if (tagset) { addHelp(); + $panel.append(''); } function moveTagDialog(e) { @@ -279,6 +280,10 @@ copy: false } }); + + $('input[name=filter_tag_tree]', $panel).on('keyup change', function() { + $(".tag-tree", $panel).jstree("search", $(this).val()); + }); } function newTagset() { @@ -310,9 +315,6 @@ }); renderTree($('#tree')); - $('input[name=filter_tag_tree]').on('keyup change', function() { - $(".tag-tree").jstree("search", $(this).val()); - }); // Prevent the info box from scrolling offscreen $window.on('scroll resize', function () {