Browse Source

disable button when send video

deployer 3 years ago
parent
commit
8ea48b5dee
1 changed files with 5 additions and 5 deletions
  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');
 const button = document.querySelector('.next');
 
 
 $(".next").click(function () {
 $(".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();
   avatar = $('.avatar').val();
   name_title = $('.title_new').val();
   name_title = $('.title_new').val();
   txtARR = [];
   txtARR = [];