clear simple query was missing
authorJakub Skoczen <jakub@indexdata.dk>
Wed, 13 Jun 2007 17:25:02 +0000 (17:25 +0000)
committerJakub Skoczen <jakub@indexdata.dk>
Wed, 13 Jun 2007 17:25:02 +0000 (17:25 +0000)
js/pz2.js

index 046b29b..a925994 100644 (file)
--- a/js/pz2.js
+++ b/js/pz2.js
@@ -1,5 +1,5 @@
 /*
-** $Id: pz2.js,v 1.35 2007-06-13 17:20:17 jakub Exp $
+** $Id: pz2.js,v 1.36 2007-06-13 17:25:02 jakub Exp $
 ** pz2.js - pazpar2's javascript client library.
 */
 
@@ -634,6 +634,10 @@ pzQuery.prototype = {
         this.simpleFilter = null;
         this.numTerms = 0;
     },
+    clearSimpleQuery: function()
+    {
+        this.simpleQuery = '';
+    },
     addTerm: function(field, value)
     {
         var term = {"field": field, "value": value};