This commit is contained in:
parent
053a61a3de
commit
bea532b978
20
game/game.js
20
game/game.js
|
@ -35706,17 +35706,19 @@
|
||||||
num++;
|
num++;
|
||||||
}
|
}
|
||||||
var eventnode=ui.create.div('.menubutton.videotext.onlineevent.pointerdiv',function(){
|
var eventnode=ui.create.div('.menubutton.videotext.onlineevent.pointerdiv',function(){
|
||||||
if(this.classList.contains('active')){
|
var that=this;
|
||||||
if(confirm('确定要离开'+this.info.content+'?')){
|
setTimeout(function(){
|
||||||
game.send('server','events',this.info.id,game.onlineKey,'leave');
|
if(that.classList.contains('active')){
|
||||||
|
if(confirm('确定要离开'+that.info.content+'?')){
|
||||||
|
game.send('server','events',that.info.id,game.onlineKey,'leave');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
else{
|
||||||
else{
|
if(confirm('确定要加入'+that.info.content+'?')){
|
||||||
if(confirm('确定要加入'+this.info.content+'?')){
|
game.send('server','events',that.info.id,game.onlineKey,'join');
|
||||||
game.send('server','events',this.info.id,game.onlineKey,'join');
|
}
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
ui.click.touchpop();
|
|
||||||
},uiintro.content);
|
},uiintro.content);
|
||||||
eventnode.info=button.info[i];
|
eventnode.info=button.info[i];
|
||||||
ui.create.div('.title',button.info[i].content,eventnode);
|
ui.create.div('.title',button.info[i].content,eventnode);
|
||||||
|
|
Loading…
Reference in New Issue