Indent. Version parameter on show, if present
authorDennis Schafroth <dennis@indexdata.com>
Thu, 12 Apr 2012 20:46:30 +0000 (22:46 +0200)
committerDennis Schafroth <dennis@indexdata.com>
Thu, 12 Apr 2012 20:46:30 +0000 (22:46 +0200)
js/pz2.js

index 5d0c614..41fa147 100644 (file)
--- a/js/pz2.js
+++ b/js/pz2.js
@@ -384,17 +384,19 @@ pz2.prototype =
         var request = new pzHttpRequest(this.pz2String, this.errorHandler);
        var requestParameters = 
           {
-            "command": "show", 
-            "session": this.sessionID, 
-            "start": this.currentStart,
-            "num": this.currentNum, 
-            "sort": this.currentSort, 
-            "block": 1,
-            "type": this.showResponseType,
-            "windowid" : window.name
+              "command": "show", 
+              "session": this.sessionID, 
+              "start": this.currentStart,
+              "num": this.currentNum, 
+              "sort": this.currentSort, 
+              "block": 1,
+              "type": this.showResponseType,
+              "windowid" : window.name,
           };
         if (query_state)
           requestParameters["query-state"] = query_state;
+       if (this.version && this.version > 0)
+           requestParameters["version"] = this.version;
         request.safeGet(
          requestParameters,
           function(data, type) {