Skip to content

Commit 2e97344

Browse files
save file
1 parent 7ce2449 commit 2e97344

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

html/chat-room/html/chat-room-simple/chat-room-simple.html

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
var df=true,did='chat-room-simple';
9292

9393

94-
var debug,$,post,poll
94+
var debug,$,post,poll,display
9595
;
9696

9797
obj.initmod = function(params){
@@ -100,6 +100,7 @@
100100
$ = mod.rd(params,'$',$);
101101
post = mod.rd(params,'post',post);
102102
poll = mod.rd(params,'poll',poll);
103+
display = mod.rd(params,'display',display);
103104

104105
}//initmod
105106

@@ -213,6 +214,19 @@
213214
//:
214215

215216

217+
218+
msg.del = async function({username,password,del_id}){
219+
220+
var ts = display.last;
221+
var result = await post('simple/del',{room_id,username,password,del_id,ts});
222+
console.log('del',result);
223+
if(!result)return;
224+
225+
display.result(result);
226+
227+
}//del
228+
229+
216230
msg.send = async function({username,password,txt}){
217231
//console.log('post.msg');
218232
var ts = display.last;

0 commit comments

Comments
 (0)