##// 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 function initAutoupdate() {
126 function initAutoupdate() {
127 connectWebsocket()
127 connectWebsocket();
128 }
128 }
129
129
130 function getReplyCount() {
130 function getReplyCount() {
@@ -257,6 +257,7 b' function processNewPost(post) {'
257 }
257 }
258
258
259 $(document).ready(function(){
259 $(document).ready(function(){
260 if ('WebSocket' in window) {
260 initAutoupdate();
261 initAutoupdate();
261
262
262 // Post form data over AJAX
263 // Post form data over AJAX
@@ -275,4 +276,5 b' function processNewPost(post) {'
275 form.ajaxForm(options);
276 form.ajaxForm(options);
276
277
277 resetForm(form);
278 resetForm(form);
279 }
278 });
280 });
General Comments 0
You need to be logged in to leave comments. Login now