Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7E51C1764C for ; Mon, 6 Oct 2014 17:14:58 +0000 (UTC) Received: (qmail 22488 invoked by uid 500); 6 Oct 2014 17:14:58 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 22423 invoked by uid 500); 6 Oct 2014 17:14:58 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 22397 invoked by uid 99); 6 Oct 2014 17:14:57 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Oct 2014 17:14:57 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 46A973206A8; Mon, 6 Oct 2014 17:14:57 +0000 (UTC) From: benkeen To: dev@couchdb.apache.org Reply-To: dev@couchdb.apache.org References: In-Reply-To: Subject: [GitHub] couchdb-fauxton pull request: New Query Options tray added Content-Type: text/plain Message-Id: <20141006171457.46A973206A8@tyr.zones.apache.org> Date: Mon, 6 Oct 2014 17:14:57 +0000 (UTC) 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. ---