Advertisement
Guest User

Untitled

a guest
Jul 29th, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function init(data, callback){
  2.     boomerang('{{ url('/') }}/comment/' + data.region + '/' + data.summonerName, '#tplComments', '.comment-grid');
  3.    
  4.     if(!callback) throw new Error("Callback not defined!");
  5.     callback();    
  6. }
  7.  
  8. $(window).load(function(){
  9.     init({
  10.         region: "",
  11.         summonerName: ""
  12.     }, function(){
  13.         $('.comment-grid').packery({
  14.             itemSelector: '.comment-tile',
  15.             gutter:0
  16.         }).packery();
  17.     });
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement