Jimy 6 năm trước cách đây
mục cha
commit
1df9703cef
1 tập tin đã thay đổi với 17 bổ sung2 xóa
  1. 17 2
      resources/views/admin/sportsfoot/outcome.blade.php

+ 17 - 2
resources/views/admin/sportsfoot/outcome.blade.php

@@ -334,7 +334,19 @@
                 if (event.target == modal) modal.style.display = "none";
             }
         }
-
+		
+		function requests(match_id){
+			$.ajax({
+                type: 'POST',
+                dataType: 'json',
+                url: '/admin/Sportsfoot/Matchresult',
+                data: {match_id:match_id},
+                success: function(data) {
+					return data;
+                }
+            })
+		}
+		
         function buttonClick(){
             var matchid = $("#matchid").val();
             var firstscore = $("#firstscore").val();
@@ -348,7 +360,10 @@
             var guestallcorner = $("#guestallcorner").val();
             var homehalfcorner = $("#homehalfcorner").val();
             var guesthalfcorner = $("#guesthalfcorner").val();
-
+			
+			requests = requests(matchid);
+			alert(requests);
+			
             $.ajax({
                 type: 'POST',
                 dataType: 'json',