If not turn poll table

This commit is contained in:
Jesse C. Fisher 2025-04-20 18:13:49 -07:00 committed by icwizardmonke
parent 8e2cbb6146
commit 381f67f93b

View File

@ -21,10 +21,12 @@
// require_tree .
// // If not your turn, poll the table
$(document).ready(function(){
setInterval(function() {
// $('#table-component').load("#{request.path} #table-component");
$('#play-to-beat').load("#{request.path} #play-to-beat");
$('#play-buttons').load("#{request.path} #play-buttons");
if ( $('.taking-turn.player[data-soft-token=' + soft_token + ']').length < 1 ) {
$('#flash_message').load(window.location.pathname +" #flash_message");
$('#table-component').load(window.location.pathname +" #table-component");
}
}, 2000);
});