Sfoglia il codice sorgente

disable button when send video

deployer 3 anni fa
parent
commit
8ea48b5dee
1 ha cambiato i file con 5 aggiunte e 5 eliminazioni
  1. 5 5
      api/static/script_util.js

+ 5 - 5
api/static/script_util.js

@@ -113,11 +113,11 @@ function prepareUpload(event) {
 const button = document.querySelector('.next');
 
 $(".next").click(function () {
-  $(".next").prop("disabled",true);
-  //button.setAttribute('disabled', '');
-  //setTimeout(function () {
-  //  button.removeAttribute('disabled')
-  //}, 4000);
+  //$(".next").prop("disabled",true);
+  button.setAttribute('disabled', '');
+  setTimeout(function () {
+    button.removeAttribute('disabled')
+  }, 10000);
   avatar = $('.avatar').val();
   name_title = $('.title_new').val();
   txtARR = [];