Fauxton: Query Parse url

Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/31c7ce75
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/31c7ce75
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/31c7ce75

Branch: refs/heads/1.6.x
Commit: 31c7ce756645041c67221a267cc901ea6eea15ce
Parents: 9fb9b4b
Author: Garren Smith <[email protected]>
Authored: Wed May 28 12:46:32 2014 +0200
Committer: Garren Smith <[email protected]>
Committed: Wed May 28 12:46:32 2014 +0200

----------------------------------------------------------------------
 src/fauxton/app/addons/documents/resources.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/31c7ce75/src/fauxton/app/addons/documents/resources.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/addons/documents/resources.js 
b/src/fauxton/app/addons/documents/resources.js
index ad61e78..709d9a9 100644
--- a/src/fauxton/app/addons/documents/resources.js
+++ b/src/fauxton/app/addons/documents/resources.js
@@ -414,6 +414,7 @@ function(app, FauxtonAPI, PagingCollection) {
 
     urlRef: function(context, params) {
       var query = "";
+      
       if (params) {
         if (!_.isEmpty(params)) {
           query = "?" + $.param(params);
@@ -421,7 +422,8 @@ function(app, FauxtonAPI, PagingCollection) {
           query = '';
         }
       } else if (this.params) {
-        query = "?" + $.param(this.params);
+        var parsedParam = Documents.QueryParams.stringify(this.params);
+        query = "?" + $.param(parsedParam);
       }
 
       var startOfUrl = app.host;

Reply via email to