##// END OF EJS Templates
Another fix to thread update
neko259 -
r894:48247e19 default
parent child Browse files
Show More
@@ -27,7 +27,6 b" var wsUrl = 'ws://localhost:9090/connect"
27 27 var wsUser = '';
28 28
29 29 var loading = false;
30 var lastUpdateTime = null;
31 30 var unreadPosts = 0;
32 31 var documentOriginalTitle = '';
33 32
@@ -82,9 +81,9 b' function connectWebsocket() {'
82 81 * missed.
83 82 */
84 83 function getThreadDiff() {
85 var diffUrl = '/api/diff_thread/' + threadId + '/' + lastUpdateTime + '/';
84 var lastUpdateTime = $('.metapanel').attr('data-last-update');
86 85
87 lastUpdateTime = $('.metapanel').attr('data-last-update');
86 var diffUrl = '/api/diff_thread/' + threadId + '/' + lastUpdateTime + '/';
88 87
89 88 $.getJSON(diffUrl)
90 89 .success(function(data) {
@@ -110,8 +109,6 b' function getThreadDiff() {'
110 109 }
111 110
112 111 // TODO Process removed posts if any
113
114 lastUpdateTime = data.last_update;
115 112 })
116 113 }
117 114
General Comments 0
You need to be logged in to leave comments. Login now