From bea532b978505e9094b9d0637864404a5476a0dc Mon Sep 17 00:00:00 2001 From: libccy Date: Wed, 19 Apr 2017 12:39:07 +0800 Subject: [PATCH] l --- game/game.js | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/game/game.js b/game/game.js index ea898a6e6..9e8d42843 100644 --- a/game/game.js +++ b/game/game.js @@ -35706,17 +35706,19 @@ num++; } var eventnode=ui.create.div('.menubutton.videotext.onlineevent.pointerdiv',function(){ - if(this.classList.contains('active')){ - if(confirm('确定要离开'+this.info.content+'?')){ - game.send('server','events',this.info.id,game.onlineKey,'leave'); + var that=this; + setTimeout(function(){ + if(that.classList.contains('active')){ + if(confirm('确定要离开'+that.info.content+'?')){ + game.send('server','events',that.info.id,game.onlineKey,'leave'); + } } - } - else{ - if(confirm('确定要加入'+this.info.content+'?')){ - game.send('server','events',this.info.id,game.onlineKey,'join'); + else{ + if(confirm('确定要加入'+that.info.content+'?')){ + game.send('server','events',that.info.id,game.onlineKey,'join'); + } } - } - ui.click.touchpop(); + }); },uiintro.content); eventnode.info=button.info[i]; ui.create.div('.title',button.info[i].content,eventnode);