瀏覽代碼

Update compiled assets

Daniel Supernault 7 年之前
父節點
當前提交
0be5a9ec5d
共有 3 個文件被更改,包括 2 次插入0 次删除
  1. 二進制
      public/js/app.js
  2. 二進制
      public/mix-manifest.json
  3. 2 0
      resources/assets/js/components/commentform.js

二進制
public/js/app.js


二進制
public/mix-manifest.json


+ 2 - 0
resources/assets/js/components/commentform.js

@@ -14,6 +14,7 @@ $(document).ready(function() {
     let commenttext = commentform.val();
     let item = {item: id, comment: commenttext};
 
+    commentform.prop('disabled', true);
     axios.post('/i/comment', item)
     .then(function (res) {
 
@@ -33,6 +34,7 @@ $(document).ready(function() {
       
       commentform.val('');
       commentform.blur();
+      commentform.prop('disabled', false);
 
     })
     .catch(function (res) {