From 68a06685c257b04fe9b927016071fe5c6e204b07 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 Signed-off-by: Michal Denar Signed-off-by: Michal Denar --- 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 417c698..1db400d 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/pages/preferences.js +++ b/koha-tmpl/intranet-tmpl/prog/js/pages/preferences.js @@ -157,6 +157,7 @@ $( document ).ready( function () { done: function( total ) { if( total > 0 ){ context.not(":has(mark)").hide(); + $("#filter_empty").remove(); } }, noMatch: function(term){ -- 2.1.4