Skip to content

Instantly share code, notes, and snippets.

@psahni
Created May 28, 2013 11:48
Show Gist options
  • Select an option

  • Save psahni/5662186 to your computer and use it in GitHub Desktop.

Select an option

Save psahni/5662186 to your computer and use it in GitHub Desktop.
lightbox inside lightbox iframe
$('.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