couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From deathb...@apache.org
Subject couchdb commit: updated refs/heads/2126-Configuration-page-broken to ff718a6
Date Thu, 27 Feb 2014 21:16:24 GMT
Repository: couchdb
Updated Branches:
  refs/heads/2126-Configuration-page-broken [created] ff718a6ac


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/ff718a6a
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/ff718a6a
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/ff718a6a

Branch: refs/heads/2126-Configuration-page-broken
Commit: ff718a6ac3fad510fa20e66621a208dd8defd467
Parents: 055219f
Author: suelockwood <deathbear@apache.org>
Authored: Thu Feb 27 16:15:51 2014 -0500
Committer: suelockwood <deathbear@apache.org>
Committed: Thu Feb 27 16:15:51 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/ff718a6a/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