Github user garrensmith commented on a diff in the pull request:
https://github.com/apache/couchdb-fauxton/pull/33#discussion_r16406884
--- Diff: app/addons/documents/views.js ---
@@ -38,6 +38,159 @@ function(app, FauxtonAPI, Components, Documents,
Databases, Views, QueryOptions,
});
}
+ //Header for alldocs with search, Query options,& api bar
+ Views.RightAllDocsHeader = FauxtonAPI.View.extend({
+ className: "header-right",
+ template: "addons/documents/templates/header_alldocs",
+ events: {
+ 'click .toggle-select-menu': 'selectAllMenu'
+ },
+
+ initialize: function(options){
+ //adding the database to the object
+ this.database = options.database;
+ _.bindAll(this);
+ this.selectVisible = false;
+ FauxtonAPI.Events.on('advancedOptions:updateView',
this.updateAllDocs);
+ FauxtonAPI.Events.on('success:bulkDelete', this.selectAllMenu);
+ },
+
+ selectAllMenu: function(e){
+ FauxtonAPI.triggerRouteEvent("toggleSelectHeader");
+
FauxtonAPI.Events.trigger("documents:show-select-all",this.selectVisible);
--- End diff --
we should probably stick to a convention of camel case for event names.
---
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.
---