From f6da80c5c801b2043c03c0f077de7472d8f26f46 Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Thu, 12 Apr 2012 22:46:30 +0200 Subject: [PATCH] Indent. Version parameter on show, if present --- js/pz2.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/js/pz2.js b/js/pz2.js index 5d0c614..41fa147 100644 --- 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) { -- 1.7.10.4