Procházet zdrojové kódy

Update compiled assets

Daniel Supernault před 7 roky
rodič
revize
0be5a9ec5d
3 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. binární
      public/js/app.js
  2. binární
      public/mix-manifest.json
  3. 2 0
      resources/assets/js/components/commentform.js

binární
public/js/app.js


binární
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) {