Created
December 7, 2010 22:27
-
-
Save joeauty/732555 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var newimage = new Image(); | |
newimage.src = thumbpic; | |
Y.one('#photoswrapperproxyinner').append('<div class="photo newimage"><img src = "' + newimage.src + '" /></div>'); | |
var imagewait = setInterval(function() { | |
if (parseInt(Y.one('#photoswrapperproxyinner .newimage').getComputedStyle('width')) == newimage.width && parseInt(Y.one('#photoswrapperproxyinner .newimage').getComputedStyle('height')) == newimage.height) { | |
Y.one('#photoswrapperproxyinner .newimage').removeClass('newimage'); | |
clearInterval(imagewait); | |
var photogallery = new Y.Photogallery(); | |
photogallery.resizeSpace(); | |
} | |
}, 100); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment