Commit cfaf1275 by Usman Khalid

leanModel is setup on jQuery.ready()

parent 6c087081
...@@ -87,6 +87,7 @@ ...@@ -87,6 +87,7 @@
} }
}); });
$(document).ready(function($) {
$("a[rel*=leanModal]").each(function(){ $("a[rel*=leanModal]").each(function(){
$(this).leanModal({ top : 120, overlay: 1, closeButton: ".close-modal", position: 'absolute' }); $(this).leanModal({ top : 120, overlay: 1, closeButton: ".close-modal", position: 'absolute' });
embed = $($(this).attr('href')).find('iframe') embed = $($(this).attr('href')).find('iframe')
...@@ -100,4 +101,5 @@ ...@@ -100,4 +101,5 @@
} }
} }
}); });
});
})(jQuery); })(jQuery);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment