Repository: couchdb Updated Branches: refs/heads/master 35390c833 -> 89eb4a6d6
Fauxton: fix global var Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/89eb4a6d Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/89eb4a6d Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/89eb4a6d Branch: refs/heads/master Commit: 89eb4a6d627e1f4e15a998319ac92210e7a1faba Parents: 35390c8 Author: Robert Kowalski <[email protected]> Authored: Fri Mar 21 20:49:41 2014 +0100 Committer: Robert Kowalski <[email protected]> Committed: Fri Mar 21 20:49:41 2014 +0100 ---------------------------------------------------------------------- src/fauxton/app/addons/activetasks/views.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb/blob/89eb4a6d/src/fauxton/app/addons/activetasks/views.js ---------------------------------------------------------------------- diff --git a/src/fauxton/app/addons/activetasks/views.js b/src/fauxton/app/addons/activetasks/views.js index 1da8f52..b0940bf 100644 --- a/src/fauxton/app/addons/activetasks/views.js +++ b/src/fauxton/app/addons/activetasks/views.js @@ -58,8 +58,8 @@ function (app, FauxtonAPI, activetasks) { }, requestByType: function(e){ - var currentTarget = e.currentTarget; - datatype = this.$(currentTarget).attr("data-type"); + var currentTarget = e.currentTarget, + datatype = this.$(currentTarget).attr("data-type"); this.$('.task-tabs').find('li').removeClass('active'); this.$(currentTarget).addClass('active'); @@ -119,8 +119,9 @@ function (app, FauxtonAPI, activetasks) { currentView = this.options.currentView; }, sortByType: function(e){ - var currentTarget = e.currentTarget; - datatype = $(currentTarget).attr("data-type"); + var currentTarget = e.currentTarget, + datatype = $(currentTarget).attr("data-type"); + this.collection.sortByColumn(datatype); this.render(); },
