Skip to content

Commit

Permalink
tweak method used for hiding modlog entries
Browse files Browse the repository at this point in the history
  • Loading branch information
Unihedro committed Jun 18, 2016
1 parent 35d2284 commit ca987f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/javascripts/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ $(function() {
var $modLog = $zone.find('.mod_log ul').children();
if ($modLog.length > 20) {
var list = $modLog.slice(20);
list.first().before('<a id="modlog-show">Show all ' + $modLog.length + ' mod log entries...</a>');
list.wrap('<span class="modlog-hidden" style="display:none"></span>');
list.addClass('modlog-hidden').hide()
.first().before('<a id="modlog-show">Show all ' + $modLog.length + ' mod log entries...</a>');
$zone.find('#modlog-show').click(function() {
$zone.find('.modlog-hidden').show();
$(this).remove();
Expand Down

0 comments on commit ca987f0

Please sign in to comment.