Disabled toggling the submission. Improved scrolling stability.

This commit is contained in:
Michael Lazar
2015-02-09 23:29:21 -08:00
parent d048fddeab
commit a980e6b4c3
2 changed files with 20 additions and 11 deletions

View File

@@ -241,7 +241,11 @@ class SubmissionContent(BaseContent):
"""
data = self.get(index)
if data['type'] == 'Comment':
if data['type'] == 'Submission':
# Can't hide the submission!
pass
elif data['type'] == 'Comment':
cache = [data]
count = 1
for d in self.iterate(index+1, 1, n_cols):
@@ -260,11 +264,9 @@ class SubmissionContent(BaseContent):
self._comment_data[index:index+len(cache)] = [comment]
elif data['type'] == 'HiddenComment':
self._comment_data[index:index+1] = data['cache']
elif data['type'] == 'MoreComments':
with self._loader():
comments = data['object'].comments()
comments = self.flatten_comments(comments, root_level=data['level'])