From 4e040eece0e8c2d90d77ba50effdaf0dad03db9f Mon Sep 17 00:00:00 2001 From: Daniela Arcese Date: Tue, 20 Jun 2017 15:36:43 -0400 Subject: [PATCH] enable copy button again --- frontend/src/upload.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/upload.js b/frontend/src/upload.js index dd66d659..033f7233 100644 --- a/frontend/src/upload.js +++ b/frontend/src/upload.js @@ -28,7 +28,10 @@ $(document).ready(function() { //disable button for 3s $copyBtn.attr('disabled', true) $copyBtn.html('Copied!'); - + window.setTimeout(()=>{ + $copyBtn.attr('disabled', false); + $copyBtn.html('Copy'); + }, 3000); }); // link back to home page