v1.18.x
Julian Lam 11 years ago
parent 92d029f072
commit 5b8585fafb

@ -1217,12 +1217,19 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
.hide() .hide()
.fadeIn('slow'); .fadeIn('slow');
// Remove the extra post-bar that gets added // Remove the extra post-bar and "follow" button that gets added
$('.posts').find('.post-bar[data-index]').each(function(idx, el) { var postsEl = $('.posts');
if (el.getAttribute('data-index')) { postsEl.find('.post-bar').each(function(idx, el) {
if (idx !== 0) {
el.parentNode.removeChild(el); el.parentNode.removeChild(el);
} }
}); });
postsEl.find('li.post-row[data-index]').each(function(idx, el) {
followEl = el.querySelector('.follow');
if (idx !== 0 && followEl) {
followEl.parentNode.removeChild(followEl);
}
});
onNewPostsLoaded(data.posts); onNewPostsLoaded(data.posts);
}); });

@ -51,7 +51,8 @@ var db = require('./database'),
'tid': tid, 'tid': tid,
'content': newContent, 'content': newContent,
'timestamp': timestamp, 'timestamp': timestamp,
'reputation': 0, 'reputation': '0',
'votes': '0',
'editor': '', 'editor': '',
'edited': 0, 'edited': 0,
'deleted': 0 'deleted': 0

Loading…
Cancel
Save