From 2db234f9a11528059185aef2c80039d7e14a7b66 Mon Sep 17 00:00:00 2001 From: "deb.monish" Date: Tue, 5 Dec 2017 02:29:01 +0530 Subject: [PATCH] CRM-21499: Add filter for tagset page --- templates/CRM/Tag/Page/Tag.tpl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 () { -- 2.25.1