[
https://issues.apache.org/jira/browse/COUCHDB-2378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14175592#comment-14175592
]
ASF GitHub Bot commented on COUCHDB-2378:
-----------------------------------------
Github user robertkowalski commented on a diff in the pull request:
https://github.com/apache/couchdb-fauxton/pull/104#discussion_r19045448
--- Diff: app/addons/documents/views-queryoptions.js ---
@@ -107,6 +107,8 @@ define([
if (!this.trayIsVisible()) {
$("#query-options-tray").velocity("transition.slideDownIn",
250); // TODO constant
FauxtonAPI.Events.trigger("APIbar:closeTray");
+ // make sure the query button is active again. As we can only
expand for completed results, this is sufficient to prevent double submission
+ $("#query-options-tray
button[type=\"submit\"]").removeAttr("disabled");
--- End diff --
You do not need to escape the `"`- just mix single and double quotes - you
can also use `this.$` to explicitly access the elements that are in this view,
so people do not get confused which element in the DOM you are manipulating:
`this.$('#query-options-tray
button[type="submit"]').removeAttr("disabled");`
> TypeError: this.viewMeta is undefined
> -------------------------------------
>
> Key: COUCHDB-2378
> URL: https://issues.apache.org/jira/browse/COUCHDB-2378
> Project: CouchDB
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: Fauxton
> Reporter: Alexander Shorin
>
> 1. Navigate to any database with a view
> 2. Select a view
> 3. Open "Query Options"
> 4. Double click on "Query" button
> You'll see infinity spinner and the error in console:
> {code}
> TypeError: this.viewMeta is undefined
> http://localhost:8000/addons/documents/resources.js:461
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)