Github user benkeen commented on a diff in the pull request:
https://github.com/apache/couchdb-fauxton/pull/106#discussion_r19228902
--- Diff: app/addons/documents/views.js ---
@@ -119,6 +119,47 @@ function(app, FauxtonAPI, Components, Documents,
Databases, Views, QueryOptions)
}
});
+ Views.SelectMenuHeader = FauxtonAPI.View.extend({
+ className: 'header-right',
+ template: 'addons/documents/templates/select_doc_menu',
+ events: {
+ 'click button.all': 'selectAll',
+ 'click button.js-bulk-delete': 'bulkDelete',
+ 'click #collapse': 'collapse',
+ 'click .js-toggle-select-menu': 'selectAllMenu'
+ },
+
+ initialize: function () {
+ this.listenTo(FauxtonAPI.Events, 'documents:toggleTrashButton',
this.toggleTrashButton);
+ },
+
+ toggleTrashButton: function (enabled) {
+ var $bulkdDeleteButton = this.$('.js-bulk-delete');
--- End diff --
Typo. $bulkDeleteButton, not $bulkdDeleteButton (sorry, I know this is old
code).
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---