Skip to content

Commit 45424b2

Browse files
save file
1 parent 3b6e735 commit 45424b2

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@
275275

276276
obj.focus = function(){
277277

278-
$(shadow,'#txt').focus();
278+
ui.txt.focus();
279279

280280
}//focus
281281

@@ -333,16 +333,17 @@
333333

334334
function del(){
335335

336-
var name = $(shadow,'#username').value;
336+
var name = ui.username.value;
337337
if(username!==name){
338338
log.red('invalid username');
339339
return;
340340
}
341341

342-
var password = $(shadow,'#password').value;
342+
var password = ui.password.value;
343343
var del_id = msg_id;
344344
var ts = display.last;
345345
send.del({username,password,del_id,ts});
346+
ui.write();
346347

347348
}//del
348349

0 commit comments

Comments
 (0)