From f54664c2b5963f607492b49c9543f40e47bdf0b2 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 81cd5779e9..dda161dbee 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.11.0