From fac659f2d2de40e7d5a18525b0ebd206d6944655 Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Fri, 23 Dec 2011 10:57:33 +0100 Subject: [PATCH] Support to send query state to SP --- js/pz2.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/js/pz2.js b/js/pz2.js index bfeade9..fde4ce1 100644 --- a/js/pz2.js +++ b/js/pz2.js @@ -361,7 +361,7 @@ pz2.prototype = } ); }, - show: function(start, num, sort) + show: function(start, num, sort, query_state) { if( !this.searchStatusOK && this.useSessions ) throw new Error( @@ -380,7 +380,7 @@ pz2.prototype = var context = this; var request = new pzHttpRequest(this.pz2String, this.errorHandler); - request.safeGet( + var requestParameters = { "command": "show", "session": this.sessionID, @@ -391,6 +391,10 @@ pz2.prototype = "type": this.showResponseType, "windowid" : window.name }, + if (query_state) + requestParameters["query-state"] = query_state; + request.safeGet( + requestParameters, function(data, type) { var show = null; var activeClients = 0; -- 1.7.10.4