Switched the callback function to load(), ready fires as soon as the iframe is avaliable in the dom. load() waits until the page has finished loading.
git-svn-id: https://beef.googlecode.com/svn/trunk@606 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
@@ -74,7 +74,7 @@ beef.dom = {
|
||||
var css = {};
|
||||
if (type == 'hidden') { css = $j.extend(true, {'border':'none', 'width':'1px', 'height':'1px', 'display':'none', 'visibility':'hidden'}, params); }
|
||||
if (type == 'fullscreen') { css = $j.extend(true, {'border':'none', 'background-color':'white', 'width':'100%', 'height':'100%', 'position':'absolute', 'top':'0px', 'left':'0px'}, params); }
|
||||
return $j('body').prepend('<iframe />').find('iframe').first().css(css).attr('src', src).ready(onload);
|
||||
return $j('body').prepend('<iframe />').find('iframe').first().css(css).attr('src', src).load(onload);
|
||||
},
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user