Created
May 28, 2013 11:48
-
-
Save psahni/5662186 to your computer and use it in GitHub Desktop.
lightbox inside lightbox iframe
This file contains hidden or 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
| $('.open-lightbox-xapp').live('click', function (event) { | |
| event.preventDefault(); | |
| var xappDId = $(this).attr('xapp_id') | |
| var message = ""; | |
| if(typeof $(this).attr('content_id') === 'undefined'){ | |
| if(typeof $(this).attr('showcase_id') !== 'undefined') | |
| if($(this).data('customize') !== 'undefined') | |
| message = 'customize-' + $(this).attr('showcase_id') + '-' +xappDId; | |
| else | |
| message = 'inxero-'+ $(this).attr('showcase_id') +'-' + xappDId; | |
| else | |
| message = 'inxero-portfolio-' + xappDId; | |
| }else{ | |
| message = 'inxero-'+ $(this).attr('content_id') +'-' + xappDId; | |
| } | |
| $.postMessage(message, ParentWindowUrl, parent) | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment