diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-07-31 00:39:00 -0400 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-07-31 00:39:00 -0400 |
| commit | 3bee1ba4fd16263ac4eefdf0bc8c7a3d11d8cccb (patch) | |
| tree | c36455e62c35dadd22bc6de7ae9fce7eaf337e4c /js/expand.js | |
| parent | 42d29657a4fd9cba4ce3db6912dd3696b4a5f83e (diff) | |
Issue #61
Diffstat (limited to 'js/expand.js')
| -rw-r--r-- | js/expand.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/js/expand.js b/js/expand.js index 16a0efb2..6e5fa659 100644 --- a/js/expand.js +++ b/js/expand.js @@ -1,9 +1,9 @@ /* - *expand.js + * expand.js * https://github.com/savetheinternet/Tinyboard/blob/master/js/expand.js * * Released under the MIT license - * Copyright (c) 2012 Michael Save <savetheinternet@tinyboard.org> + * Copyright (c) 2012-2013 Michael Save <savetheinternet@tinyboard.org> * * Usage: * $config['additional_javascript'][] = 'js/jquery.min.js'; @@ -35,9 +35,8 @@ $(document).ready(function(){ $(this).addClass('expanded').insertAfter(thread.find('div.post:first')).after('<br class="expanded">'); } last_expanded = $(this); - - } - else { + $(document).trigger('new_post', this); + } else { last_expanded = post_in_doc; } }); |
