couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From garrensmith <...@git.apache.org>
Subject [GitHub] couchdb-fauxton pull request: Secondary indexes: huge branch
Date Tue, 19 Aug 2014 10:31:34 GMT
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message