couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gar...@apache.org
Subject couchdb commit: updated refs/heads/master to 31c7ce7
Date Wed, 28 May 2014 10:46:43 GMT
Repository: couchdb
Updated Branches:
  refs/heads/master 9fb9b4b79 -> 31c7ce756


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/master
Commit: 31c7ce756645041c67221a267cc901ea6eea15ce
Parents: 9fb9b4b
Author: Garren Smith <garren.smith@gmail.com>
Authored: Wed May 28 12:46:32 2014 +0200
Committer: Garren Smith <garren.smith@gmail.com>
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;


Mime
View raw message