ming 3 سال پیش
والد
کامیت
29d86ccaf0
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      api/static/script_util.js

+ 3 - 3
api/static/script_util.js

@@ -125,11 +125,11 @@ $(".next").click(function () {
   console.log(data)
   result = xhr.send(objstr);
 });
-
+const buttonSend = document.querySelector('#sendBTN');
 $("#sendBTN").click(function () {
-  button.setAttribute('disabled', '');
+  buttonSend.setAttribute('disabled', '');
   setTimeout(function () {
-    button.removeAttribute('disabled')
+    buttonSend.removeAttribute('disabled')
   }, 4000);
   avatar = $('.avatar').val();
   name_title = $('.title_new').val();