##// END OF EJS Templates
Fixed adding dead_post class to posts after bumplimit reached
neko259 -
r585:af8fdac8 default
parent child Browse files
Show More
@@ -111,7 +111,6 b' function updateThread() {'
111 111 }
112 112
113 113 updateBumplimitProgress(data.added.length);
114 updatePostBumpableStatus();
115 114
116 115 if (data.added.length + data.updated.length > 0) {
117 116 showNewPostsTitle(data.added.length);
@@ -179,6 +178,7 b' function updateBumplimitProgress(postDel'
179 178 var newPostsToLimit = bumplimit - postCount;
180 179 if (newPostsToLimit <= 0) {
181 180 $('.bar-bg').remove();
181 $('.thread').children('.post').addClass('dead_post');
182 182 } else {
183 183 postsToLimitElement.text(newPostsToLimit);
184 184 progressBar.width((100 - postCount / bumplimit * 100.0) + '%');
@@ -186,17 +186,6 b' function updateBumplimitProgress(postDel'
186 186 }
187 187 }
188 188
189 /**
190 * If the bumplimit is reached, add dead_post class to all posts
191 */
192 function updatePostBumpableStatus() {
193 var postsToLimitElement = $('#left_to_limit');
194
195 if (postsToLimitElement === null) {
196 $('.thread').children('.post').addClass('dead_post');
197 }
198 }
199
200 189 var documentOriginalTitle = '';
201 190 /**
202 191 * Show 'new posts' text in the title if the document is not visible to a user
General Comments 0
You need to be logged in to leave comments. Login now