couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [02/50] [abbrv] fauxton commit: updated refs/heads/import-master to b32c617
Date Tue, 01 Apr 2014 09:14:18 GMT
Added comparitor to the configuration collection for alphabetical sorting


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

Branch: refs/heads/import-master
Commit: 06c6cf55afe8fe0d7ffcdb8375bb3b04fcff13a5
Parents: eaf9c3a
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

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


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/06c6cf55/app/addons/config/resources.js
----------------------------------------------------------------------
diff --git a/app/addons/config/resources.js b/app/addons/config/resources.js
index 14d2474..227e80d 100644
--- a/app/addons/config/resources.js
+++ b/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