Created
May 10, 2013 17:58
-
-
Save pavelk2/5556179 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
if (options.show_media) { | |
if (element.attachments) { | |
$.each(element.attachments,function(index){ | |
console.log(this); | |
if (this.type == 'video') | |
post.attachment = '<img class="attachment" src="' + this.video.image_big + '" />'; | |
if (this.type == 'photo'){ | |
console.log(this.photo.src_big); | |
post.attachment = '<img class="attachment" src="' + this.photo.src_big + '" />'; | |
} | |
//if (this.type == 'link') | |
//post.attachment = '<img class="attachment" src="' + this.link.image_src + '" />'; | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment