##// END OF EJS Templates
Use thread autoupdate only if websockets available
neko259 -
r856:a65846d0 default
parent child Browse files
Show More
@@ -124,7 +124,7 b' function isPageBottom() {'
124 124 }
125 125
126 126 function initAutoupdate() {
127 connectWebsocket()
127 connectWebsocket();
128 128 }
129 129
130 130 function getReplyCount() {
@@ -257,6 +257,7 b' function processNewPost(post) {'
257 257 }
258 258
259 259 $(document).ready(function(){
260 if ('WebSocket' in window) {
260 261 initAutoupdate();
261 262
262 263 // Post form data over AJAX
@@ -275,4 +276,5 b' function processNewPost(post) {'
275 276 form.ajaxForm(options);
276 277
277 278 resetForm(form);
279 }
278 280 });
General Comments 0
You need to be logged in to leave comments. Login now