Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Commit

Permalink
refs #23 ウォール: 画像が表示されるまではスクロールできないように修正
Browse files Browse the repository at this point in the history
  • Loading branch information
YOSHIDA Hiroki committed Nov 10, 2013
1 parent a32a6f1 commit 15bf125
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/assets/javascripts/wall.js.coffee.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ window.destroy_infinitescroll = ->
window.initialize_infinitescroll = ->
$container = $('#container')
$container.infinitescroll(infinitescroll_options(), (newElements) ->
$(newElements).addClass('hidden')
$(newElements).css({ opacity: 0 }).imagesLoaded( ->
@.removeClass('hidden')
resize_images()
$container.masonry('appended', @, true)
@.animate({ opacity: 1 })
Expand Down

0 comments on commit 15bf125

Please sign in to comment.