mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-01-17 23:21:14 +00:00
Merge pull request #88 from Absurdon/master
fixed gathercount not getting loaded immediatly
This commit is contained in:
commit
dab26d0759
1 changed files with 5 additions and 5 deletions
|
@ -80,16 +80,16 @@
|
|||
</div>
|
||||
</nav>
|
||||
<script>
|
||||
$(function () {
|
||||
var gatherInterval = setInterval(function() {
|
||||
$((function gather () {
|
||||
$.ajax({
|
||||
datatype: "json",
|
||||
url: "<%= gathers_url %>/gathers/current",
|
||||
success: function (data) {
|
||||
$("#gathercount").html(data.gatherers.length + "/12");
|
||||
},
|
||||
complete: function() {
|
||||
setTimeout(gather, 10000);
|
||||
}
|
||||
});
|
||||
},10000);
|
||||
|
||||
});
|
||||
})());
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue