Query-Tray: Prevent double query submission

Disable button after first click until the tray is reopened

Closes COUCHDB-2378