From: Dennis Schafroth Date: Thu, 24 Nov 2011 13:11:58 +0000 (+0100) Subject: Add re-try on faulty show X-Git-Tag: v1.6.6~12 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=d7aab7777fc655e0d0927ee1748ba4695d203859;p=pazpar2-moved-to-github.git Add re-try on faulty show --- diff --git a/js/pz2.js b/js/pz2.js index ca0d28c..1b586df 100644 --- a/js/pz2.js +++ b/js/pz2.js @@ -430,6 +430,10 @@ pz2.prototype = for (i = 0; i < hits.length; i++) show.hits[i] = Element_parseChildNodes(hits[i]); } else { + // We prob. got a 417 Already blocked, need to retry + context.showTimer = setTimeout(function () { + context.show(); + }, delay); context.throwError('Show failed. Malformed WS resonse.', 114); }