This commit is contained in:
barisusakli
2015-09-01 16:31:23 -04:00
parent ffff8093ba
commit 0ffb81308e

View File

@@ -152,8 +152,8 @@ define('forum/topic', [
return 0;
}
while (lastPart > 0 && !components.get('post/anchor', lastPart).length) {
lastPart --;
if (lastPart > 0 && !components.get('post/anchor', lastPart).length) {
return components.get('post/anchor').last().attr('name');
}
return lastPart;