       window.scrollTo x, targetDocumentScrollTop
 
       osu.pageChange()
-      $link.attr 'data-failed', '0'
+      link.dataset.failed = '0'
 
     .always ->
-      $link.removeClass 'js-disabled'
+      link.classList.remove 'js-disabled'
     .fail ->
-      $link.attr 'data-failed', '1'
+      link.dataset.failed = '1'
 
 
   jumpToSubmit: (e) =>

  showMore: (e) =>
    e.preventDefault()

    return if e.currentTarget.classList.contains('js-disabled')

    $link = $(e.currentTarget)
    mode = $link.data('mode')

    if mode == 'previous'
      $refPost = $('.js-forum-post').first()
      sort = 'id_desc'
    else
      $refPost = $('.js-forum-post').last()
      sort = 'id_asc'

    options =
      skip_layout: 1
      with_deleted: +@showDeleted()
      sort: sort
      cursor:
        post_id: $refPost.data('post-id')

    $link.addClass 'js-disabled'

    $.get(window.canonicalUrl, options)
    .done (data) =>
      scrollReference = $refPost[0]
      scrollReferenceTop = scrollReference.getBoundingClientRect().top

      if mode == 'previous'
        $link.after data
        toRemoveStart = @maxPosts
        toRemoveEnd = @posts.length
      else
        $link.before data
        toRemoveStart = 0
        toRemoveEnd = @posts.length - @maxPosts


    if lastPostLoaded
      $(@endPost()).find('.js-post-delete-toggle').css(display: '')

    for link in @loadMoreLinks
      link.href = @moreMeta(link).url


  refreshCounter: =>
    return if @_postsCounter.length == 0
