mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-17 14:54:30 +01:00
wait for window load event before positioning images, doi
This commit is contained in:
parent
b781f6ca59
commit
d9cbcfc20d
@ -312,14 +312,6 @@ img.large-bird {
|
||||
opacity: .1;
|
||||
}
|
||||
|
||||
/* Media grid images
|
||||
--------------------------------------------------- */
|
||||
.media-grid img {
|
||||
height: 150px;
|
||||
width: 210px;
|
||||
}
|
||||
|
||||
|
||||
/* Pretty Print
|
||||
-------------------------------------------------- */
|
||||
pre.prettyprint {
|
||||
|
@ -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')
|
||||
})
|
||||
|
||||
})
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user