mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05:46 +01:00
fixes issue #16 (ajaxify.go is now called) and reintroduces the fadein animation for new topic post
This commit is contained in:
@@ -27,20 +27,21 @@
|
|||||||
jQuery('#category-no-topics').remove();
|
jQuery('#category-no-topics').remove();
|
||||||
|
|
||||||
topic.innerHTML = html;
|
topic.innerHTML = html;
|
||||||
|
topic = topic.querySelector('a');
|
||||||
|
|
||||||
if (numTopics > 0) {
|
if (numTopics > 0) {
|
||||||
for(x=0;x<numTopics;x++) {
|
for(x=0;x<numTopics;x++) {
|
||||||
if (topics[x].querySelector('.icon-pushpin')) continue;
|
if (topics[x].querySelector('.icon-pushpin')) continue;
|
||||||
container.insertBefore(topic.querySelector('a'), topics[x]);
|
container.insertBefore(topic, topics[x]);
|
||||||
$(topic).hide().fadeIn('slow');
|
$(topic).hide().fadeIn('slow');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
container.insertBefore(topic.querySelector('a'), null);
|
container.insertBefore(topic, null);
|
||||||
$(topic).hide().fadeIn('slow');
|
$(topic).hide().fadeIn('slow');
|
||||||
}
|
}
|
||||||
|
|
||||||
// jQuery('<div></div>').appendTo("#topics-container").hide().append(html).fadeIn('slow');
|
ajaxify.enable();
|
||||||
// set_up_posts(uniqueid);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user