diff options
| author | czaks <marcin@6irc.net> | 2013-07-26 22:34:06 -0400 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2013-07-26 22:34:06 -0400 |
| commit | a28b5fc3a1975af863d348d3851b90b3c398baaf (patch) | |
| tree | 307b46e32173b09d5b369975201ca32c7fcde25b /js | |
| parent | 1a43b8731525e7268b1c4e167b8116fdf97b28c4 (diff) | |
expand.js: fix a weird bug - thread expand not always worked due to post being loaded in DOM, but not put in a right place in a thread, or so, so check if it has been loaded in a thread instead of if it exists in DOM
Diffstat (limited to 'js')
| -rw-r--r-- | js/expand.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/expand.js b/js/expand.js index 0e3537a8..1a719fad 100644 --- a/js/expand.js +++ b/js/expand.js @@ -27,7 +27,7 @@ $(document).ready(function(){ success: function(data) { var last_expanded = false; $(data).find('div.post.reply').each(function() { - if($('#' + $(this).attr('id')).length == 0) { + if(thread.find('#' + $(this).attr('id')).length == 0) { if(last_expanded) { $(this).addClass('expanded').insertAfter(last_expanded).before('<br class="expanded">'); } else { |
