|
@@ -54,16 +54,17 @@ $matches = $conn->getMatches($countryId, $leagueId);
|
|
|
</table>
|
|
</table>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
-
|
|
|
|
|
-$('form').live('submit', function() {
|
|
|
|
|
- $.post($(this).attr('action'), $(this).serialize(), function(response) {
|
|
|
|
|
- // here on success
|
|
|
|
|
- console.log("Sent bet to db");
|
|
|
|
|
- }, 'json');
|
|
|
|
|
- return false;
|
|
|
|
|
|
|
+$(document).ready(function(){
|
|
|
|
|
+ var $form = $('form');
|
|
|
|
|
+ $('form').live('submit', function() {
|
|
|
|
|
+ $.post($(this).attr('action'), $(this).serialize(), function(response) {
|
|
|
|
|
+ // here on success
|
|
|
|
|
+ console.log("Sent bet to db");
|
|
|
|
|
+ }, 'json');
|
|
|
|
|
+ return false;
|
|
|
|
|
+ });
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
-
|
|
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
</body>
|
|
</body>
|