couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [05/15] fauxton commit: updated refs/heads/import-master to 8cb432c
Date Sat, 07 Jun 2014 21:04:29 GMT
Fauxton: Query Parse url


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

Branch: refs/heads/import-master
Commit: 58c6b6d59537ec400438120c40c02a182a714fa7
Parents: f216c42
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

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


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/58c6b6d5/app/addons/documents/resources.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/resources.js b/app/addons/documents/resources.js
index ad61e78..709d9a9 100644
--- a/app/addons/documents/resources.js
+++ b/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