1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-22 01:36:55 +01:00

disable post button upon first click

This commit is contained in:
Matthias Kretschmann 2018-02-05 17:46:30 +01:00
parent 0f24e1f503
commit 14cfeddd80
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -96,6 +96,7 @@ window.addEventListener('DOMContentLoaded', function domload(event) {
e.preventDefault()
const message = messageInput.value
postButton.classList.add('disabled')
const alice = new driver.Ed25519Keypair()
const tx = driver.Transaction.makeCreateTransaction(
@ -128,7 +129,6 @@ window.addEventListener('DOMContentLoaded', function domload(event) {
transactionLink.href = bigchaindbUrl + apiPath + 'transactions/' + response.id
postButton.classList.add('disabled')
postButton.style.opacity = 0
responseArea.children[0].classList.add('nyan')