2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-05 16:42:29 +03:00

wait for window load event before positioning images, doi

This commit is contained in:
Jacob Thornton
2011-09-10 22:54:47 -07:00
parent b781f6ca59
commit d9cbcfc20d
2 changed files with 11 additions and 18 deletions
+11 -10
View File
@@ -48,15 +48,16 @@ $(document).ready(function(){
// POSITION STATIC TWIPSIES
// ========================
$(".twipsies a").each(function () {
$(this)
.twipsy({
live: false
, placement: $(this).attr('title')
, trigger: 'manual'
, offset: 2
$(window).load(function () {
$(".twipsies a").each(function () {
$(this)
.twipsy({
live: false
, placement: $(this).attr('title')
, trigger: 'manual'
, offset: 2
})
.trigger('twipsy:show')
})
.trigger('twipsy:show')
})
})
});