Fossil SCM

Put the <form> outside of the chat-input-area <div>. Safari requires this.

drh 2020-12-27 21:00 trunk
Commit ca60df923879f7cdeddd5ed611e0a31381801f89c5bc65ff316e569212793311
1 file changed +2 -2
+2 -2
--- src/chat.c
+++ src/chat.c
@@ -112,12 +112,12 @@
112112
iPingTcp = atoi(PD("ping","0"));
113113
if( iPingTcp<1000 || iPingTcp>65535 ) iPingTcp = 0;
114114
if( iPingTcp ) style_disable_csp();
115115
style_set_current_feature("chat");
116116
style_header("Chat");
117
- @ <div id='chat-input-area'>
118117
@ <form accept-encoding="utf-8" id="chat-form" autocomplete="off">
118
+ @ <div id='chat-input-area'>
119119
@ <div id='chat-input-line'>
120120
@ <input type="text" name="msg" id="chat-input-single" \
121121
@ placeholder="Type message here." autocomplete="off">
122122
@ <textarea rows="8" id="chat-input-multi" \
123123
@ placeholder="Type message here" class="hidden"></textarea>
@@ -136,12 +136,12 @@
136136
@ </div>
137137
@ <input type="file" name="file" id="chat-input-file">
138138
@ </div>
139139
@ <div id="chat-drop-details"></div>
140140
@ </div>
141
- @ </form>
142141
@ </div>
142
+ @ </form>
143143
@ <div id='chat-messages-wrapper'>
144144
/* New chat messages get inserted immediately after this element */
145145
@ <span id='message-inject-point'></span>
146146
@ </div>
147147
148148
--- src/chat.c
+++ src/chat.c
@@ -112,12 +112,12 @@
112 iPingTcp = atoi(PD("ping","0"));
113 if( iPingTcp<1000 || iPingTcp>65535 ) iPingTcp = 0;
114 if( iPingTcp ) style_disable_csp();
115 style_set_current_feature("chat");
116 style_header("Chat");
117 @ <div id='chat-input-area'>
118 @ <form accept-encoding="utf-8" id="chat-form" autocomplete="off">
 
119 @ <div id='chat-input-line'>
120 @ <input type="text" name="msg" id="chat-input-single" \
121 @ placeholder="Type message here." autocomplete="off">
122 @ <textarea rows="8" id="chat-input-multi" \
123 @ placeholder="Type message here" class="hidden"></textarea>
@@ -136,12 +136,12 @@
136 @ </div>
137 @ <input type="file" name="file" id="chat-input-file">
138 @ </div>
139 @ <div id="chat-drop-details"></div>
140 @ </div>
141 @ </form>
142 @ </div>
 
143 @ <div id='chat-messages-wrapper'>
144 /* New chat messages get inserted immediately after this element */
145 @ <span id='message-inject-point'></span>
146 @ </div>
147
148
--- src/chat.c
+++ src/chat.c
@@ -112,12 +112,12 @@
112 iPingTcp = atoi(PD("ping","0"));
113 if( iPingTcp<1000 || iPingTcp>65535 ) iPingTcp = 0;
114 if( iPingTcp ) style_disable_csp();
115 style_set_current_feature("chat");
116 style_header("Chat");
 
117 @ <form accept-encoding="utf-8" id="chat-form" autocomplete="off">
118 @ <div id='chat-input-area'>
119 @ <div id='chat-input-line'>
120 @ <input type="text" name="msg" id="chat-input-single" \
121 @ placeholder="Type message here." autocomplete="off">
122 @ <textarea rows="8" id="chat-input-multi" \
123 @ placeholder="Type message here" class="hidden"></textarea>
@@ -136,12 +136,12 @@
136 @ </div>
137 @ <input type="file" name="file" id="chat-input-file">
138 @ </div>
139 @ <div id="chat-drop-details"></div>
140 @ </div>
 
141 @ </div>
142 @ </form>
143 @ <div id='chat-messages-wrapper'>
144 /* New chat messages get inserted immediately after this element */
145 @ <span id='message-inject-point'></span>
146 @ </div>
147
148

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button