Show More
@@ -92,19 +92,19 b' function getThreadDiff() {' | |||
|
92 | 92 | $.getJSON(diffUrl) |
|
93 | 93 | .success(function(data) { |
|
94 | 94 | var addedPosts = data.added; |
|
95 | var hasMetaUpdates = false; | |
|
96 | 95 | |
|
97 | 96 | for (var i = 0; i < addedPosts.length; i++) { |
|
98 | 97 | var postText = addedPosts[i]; |
|
99 | 98 | var post = $(postText); |
|
100 | 99 | |
|
101 | 100 | updatePost(post); |
|
102 | hasMetaUpdates = true; | |
|
103 | 101 | } |
|
104 | 102 | |
|
105 | 103 | var addedPostsCount = addedPosts.length; |
|
106 |
|
|
|
107 |
|
|
|
104 | if (addedPostsCount > 0) { | |
|
105 | updateBumplimitProgress(addedPostsCount); | |
|
106 | showNewPostsTitle(addedPostsCount); | |
|
107 | } | |
|
108 | 108 | |
|
109 | 109 | var updatedPosts = data.updated; |
|
110 | 110 | |
@@ -113,9 +113,9 b' function getThreadDiff() {' | |||
|
113 | 113 | var post = $(postText); |
|
114 | 114 | |
|
115 | 115 | updatePost(post); |
|
116 | hasMetaUpdates = true; | |
|
117 | 116 | } |
|
118 | 117 | |
|
118 | var hasMetaUpdates = addedPostsCount > 0 || updatedPosts.length > 0; | |
|
119 | 119 | if (hasMetaUpdates) { |
|
120 | 120 | updateMetadataPanel(); |
|
121 | 121 | } |
General Comments 0
You need to be logged in to leave comments.
Login now