fixes issue #16 (ajaxify.go is now called) and reintroduces the fadein animation for new topic post

v1.18.x
psychobunny 12 years ago
parent ad11be657e
commit 166254b848

@ -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);
}); });

Loading…
Cancel
Save