Skip to content

Commit 783b4a3

Browse files
save file
1 parent e239bb1 commit 783b4a3

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

html/chat-room/chat-room.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@
7373
obj.init = async function(){
7474
debug=eval(debug.mod);
7575
debug('init');
76+
rd.attr.server();
77+
rd.attr.room();
78+
rd.attr['poll-time']();
79+
80+
7681
hdr = mod['chat-room-hdr'];
7782
display = mod['chat-room-display'];
7883

@@ -81,7 +86,7 @@
8186
Object.keys(input).forEach(key=>{
8287

8388
input[key].df = df;
84-
input[key].initmod({post,poll,display})
89+
input[key].initmod({post,poll,display,room_id})
8590

8691
});
8792

@@ -105,7 +110,7 @@
105110
rd.attr.room = function(){
106111

107112
if(!target.hasAttribute('room'))return;
108-
room = target.getAttribute('room');
113+
room_id = target.getAttribute('room');
109114

110115
}//room
111116

@@ -119,7 +124,7 @@
119124
if(num<poll.min){
120125
num = poll.min;
121126
}
122-
polltime = num;
127+
poll.time = num;
123128
}
124129

125130
}//poll-time

0 commit comments

Comments
 (0)