You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ro...@apache.org on 2014/12/03 15:32:22 UTC
fauxton commit: updated refs/heads/master to 268a2b1
Repository: couchdb-fauxton
Updated Branches:
refs/heads/master 3b3151ba0 -> 268a2b137
Fix initial select-all state
Sometimes it was already selected
Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/268a2b13
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/268a2b13
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/268a2b13
Branch: refs/heads/master
Commit: 268a2b1374eb28ba8e104f34c87765125dc26ca9
Parents: 3b3151b
Author: Robert Kowalski <ro...@apache.org>
Authored: Tue Dec 2 11:39:12 2014 +0100
Committer: Robert Kowalski <ro...@apache.org>
Committed: Wed Dec 3 15:31:46 2014 +0100
----------------------------------------------------------------------
app/addons/documents/views.js | 6 ++++++
1 file changed, 6 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/268a2b13/app/addons/documents/views.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/views.js b/app/addons/documents/views.js
index 7de7030..24dfbfd 100644
--- a/app/addons/documents/views.js
+++ b/app/addons/documents/views.js
@@ -396,6 +396,10 @@ function(app, FauxtonAPI, Components, Documents, Databases, Views, QueryOptions)
if (this.$('.js-to-delete').length < this.$('.all-docs-item').length) {
return;
}
+
+ if (this.bulkDeleteDocsCollection.length === 0) {
+ return;
+ }
this.$('.js-all').addClass('active');
},
@@ -488,6 +492,8 @@ function(app, FauxtonAPI, Components, Documents, Databases, Views, QueryOptions)
cleanup: function () {
this.allDocsNumber && this.allDocsNumber.remove();
_.each(this.rows, function (row) {row.remove();});
+
+ this.bulkDeleteDocsCollection.reset();
},
removeNestedViews: function () {