fix: add 3s debounce to opening() across all 8 dealer JS files

This commit is contained in:
testadmin
2026-05-17 12:16:54 +08:00
parent 3533758405
commit cd149d5478
8 changed files with 32 additions and 0 deletions
+4
View File
@@ -227,7 +227,11 @@ var resetBoot = function(){
layer.close(index);
});
};
var isOpening = false;
var opening = function(){
if(isOpening) return;
isOpening = true;
setTimeout(function(){ isOpening = false; }, 3000);
$('.control-box .btn-box2 span').removeClass('on');
if(game_id == 1){
websocket.emit('openingBaccarat',{table_id : table_id, number_tab_id : number_tab_id});