Skip to content

Commit

Permalink
Re run fitvid.js when loading in new content
Browse files Browse the repository at this point in the history
  • Loading branch information
roryg committed Jan 21, 2014
1 parent 13ccdab commit ee431b2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions assets/js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ jQuery(function($) {
$postIndex.hide();
}

// Re run fitvid.js
$newContent.fitVids();

$ajaxContainer.html($newContent);
$ajaxContainer.fadeIn(500);

Expand Down

0 comments on commit ee431b2

Please sign in to comment.