Show More
@@ -111,7 +111,6 b' function updateThread() {' | |||||
111 | } |
|
111 | } | |
112 |
|
112 | |||
113 | updateBumplimitProgress(data.added.length); |
|
113 | updateBumplimitProgress(data.added.length); | |
114 | updatePostBumpableStatus(); |
|
|||
115 |
|
114 | |||
116 | if (data.added.length + data.updated.length > 0) { |
|
115 | if (data.added.length + data.updated.length > 0) { | |
117 | showNewPostsTitle(data.added.length); |
|
116 | showNewPostsTitle(data.added.length); | |
@@ -179,6 +178,7 b' function updateBumplimitProgress(postDel' | |||||
179 | var newPostsToLimit = bumplimit - postCount; |
|
178 | var newPostsToLimit = bumplimit - postCount; | |
180 | if (newPostsToLimit <= 0) { |
|
179 | if (newPostsToLimit <= 0) { | |
181 | $('.bar-bg').remove(); |
|
180 | $('.bar-bg').remove(); | |
|
181 | $('.thread').children('.post').addClass('dead_post'); | |||
182 | } else { |
|
182 | } else { | |
183 | postsToLimitElement.text(newPostsToLimit); |
|
183 | postsToLimitElement.text(newPostsToLimit); | |
184 | progressBar.width((100 - postCount / bumplimit * 100.0) + '%'); |
|
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 | var documentOriginalTitle = ''; |
|
189 | var documentOriginalTitle = ''; | |
201 | /** |
|
190 | /** | |
202 | * Show 'new posts' text in the title if the document is not visible to a user |
|
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