couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gar...@apache.org
Subject [14/34] couchdb commit: updated refs/heads/paginate-api-options to b63c791
Date Mon, 03 Mar 2014 16:58:26 GMT
Added comparitor to the configuration collection for alphabetical sorting


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

Branch: refs/heads/paginate-api-options
Commit: 929b3a08776674742353aab20d5f4adb331dd2a7
Parents: 0df722e
Author: suelockwood <deathbear@apache.org>
Authored: Thu Feb 27 16:15:51 2014 -0500
Committer: suelockwood <deathbear@apache.org>
Committed: Fri Feb 28 12:42:49 2014 -0500

----------------------------------------------------------------------
 src/fauxton/app/addons/config/resources.js | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/929b3a08/src/fauxton/app/addons/config/resources.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/addons/config/resources.js b/src/fauxton/app/addons/config/resources.js
index 14d2474..227e80d 100644
--- a/src/fauxton/app/addons/config/resources.js
+++ b/src/fauxton/app/addons/config/resources.js
@@ -51,6 +51,11 @@ function (app, FauxtonAPI) {
   Config.Collection = Backbone.Collection.extend({
     model: Config.Model,
     documentation: "config",
+    comparator: function (OptionModel) {
+      if (OptionModel.get("section")) {
+        return OptionModel.get("section");
+      }
+    },
     url: function () {
       return app.host + '/_config';
     },


Mime
View raw message