From e62d6fbd690805c468b16e54c41dc1304a282895 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 20 Jul 2018 11:26:26 -0300 Subject: [PATCH] Bug 20935: Remove 'no match' box when it does Test plan: Hit /cgi-bin/koha/admin/preferences.pl Search for "AcqCreateX" => You get "No matching terms were found on this page" Remove the last X => Without this patch the "no matching" box is still displayed Signed-off-by: Owen Leonard Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/js/pages/preferences.js | 1 + 1 file changed, 1 insertion(+) diff --git a/koha-tmpl/intranet-tmpl/prog/js/pages/preferences.js b/koha-tmpl/intranet-tmpl/prog/js/pages/preferences.js index 1aba1e2..2cb1ac1 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/pages/preferences.js +++ b/koha-tmpl/intranet-tmpl/prog/js/pages/preferences.js @@ -133,6 +133,7 @@ $( document ).ready( function () { done: function( total ) { if( total > 0 ){ context.not(":has(mark)").hide(); + $("#filter_empty").remove(); } }, noMatch: function(term){ -- 2.1.4