From: Wolfram Schneider Date: Fri, 15 Apr 2011 12:03:02 +0000 (+0000) Subject: Add forgotten variable declarations. X-Git-Tag: v1.5.7~13^2~22^2^2~1^2~1 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=6b78fc60b8cc311f430143f82dc8a9fd81866479;p=pazpar2-moved-to-github.git Add forgotten variable declarations. detected by "use strict" pragma in JavaScript 1.8.5/Firefox4 --- diff --git a/www/jsdemo/example_client.js b/www/jsdemo/example_client.js index fd9c37e..8342494 100644 --- a/www/jsdemo/example_client.js +++ b/www/jsdemo/example_client.js @@ -13,7 +13,7 @@ if (document.location.hash == '#useproxy') { showResponseType = 'json'; } -my_paz = new pz2( { "onshow": my_onshow, +var my_paz = new pz2( { "onshow": my_onshow, "showtime": 500, //each timer (show, stat, term, bytarget) can be specified this way "pazpar2path": pazpar2path, "oninit": my_oninit, @@ -245,7 +245,7 @@ function drawPager (pagerDiv) var prev = '<< Prev | '; if (curPage > 1) - var prev = ' | '; var middle = ''; @@ -260,14 +260,14 @@ function drawPager (pagerDiv) var next = ' | Next >>'; if (pages - curPage > 0) - var next = ' | '; - predots = ''; + var predots = ''; if (firstClkbl > 1) predots = '...'; - postdots = ''; + var postdots = ''; if (lastClkbl < pages) postdots = '...';