#5 new
Rajesh Patel

Slipjaq panel should not render on iframes

Reported by Rajesh Patel | April 25th, 2012 @ 11:02 AM

When using certain drupal modules that employ iframes (i.e. modal_frame_api dependent modules or the wysiwyg_image_upload module),

the slipjaq_toppanel div is rendered with the iframe.

this behaviour is undesirable since, while upload an image for example, a user could accidentally log-out.

My fix for this was to add a new script which loads through hook_init and which makes a check of wheter or not the current page is rendering in an iframe. If it is in an iframe, (checked by comparing if window.location.href != top.location.href), then the jquery simply removes the "#slipjq_toppanel" div.

Possibly this should be a configurable behavior for the slipjaq module (?)

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A Drupal module for a sliding login panel

Shared Ticket Bins

People watching this ticket

Pages