couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From benkeen <...@git.apache.org>
Subject [GitHub] couchdb-fauxton pull request: New Query Options tray added
Date Mon, 06 Oct 2014 17:14:57 GMT
Github user benkeen commented on the pull request:

    https://github.com/apache/couchdb-fauxton/pull/78#issuecomment-58052261
  
    Again, thanks for the feedback @garrensmith! All fixed locally. Just one thing I'm not
clear on. I replaced the `this.rightHeader.resetQueryOptions()` call in ViewEditor.afterRender
with:
    
    ```javascript
            FauxtonAPI.triggerRouteEvent('resetQueryOptions', {
              queryParams: this.params,
              hasReduce: this.hasReduce(),
              showStale: true
            });
    ```
    Then added an event on the Route Object that mapped to this: 
    
    ```
        resetQueryOptions: function(options) {
          this.rightHeader.resetQueryOptions(options);
        },
    ```
    However, now it appears that the `afterRender()` method of the ViewEditor fires twice,
and the header components disappear. I don't understand what's happening there - anything
obvious I'm missing? 



---
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