From 5ca0d0c4acf84f6072146c4c1dc9012e36c654c8 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Thu, 9 Oct 2014 16:43:01 +0100 Subject: [PATCH] Fix MKWS-284 ("facet widgets fails in koha") On successful search, invoke context.show() only if there is a showCallback. (That's not always the case since we fixed MKWS-272.) --- js/pz2.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/pz2.js b/js/pz2.js index fb6264c..ab45cc0 100644 --- a/js/pz2.js +++ b/js/pz2.js @@ -319,7 +319,8 @@ pz2.prototype = .childNodes[0].nodeValue == "OK" ) { context.searchStatusOK = true; //piggyback search - context.show(start, num, sort); + if (context.showCallback) + context.show(start, num, sort); if (context.statCallback) context.stat(); if (context.termlistCallback) -- 1.7.10.4