Closed (fixed)
Project:
Launchpad for Drupal
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
27 Dec 2008 at 17:41 UTC
Updated:
4 Feb 2009 at 22:26 UTC
Jump to comment: Most recent file
Hi,
I had to change the fancybox default width and height in js/jquery.fancybox.js to get it to work better with Firefox on my Mac:
$.fn.fancybox.defaults = {
hideOnContentClick: false,
zoomSpeedIn: 500,
zoomSpeedOut: 500,
frameWidth: 800,
frameHeight: 600,
overlayShow: false,
overlayOpacity: 0.4,
itemLoadCallback: null
};
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | fancybox-mac.js_.patch | 669 bytes | lopolencastredealmeida |
Comments
Comment #1
lopolencastredealmeida commentedThanks for your work. JQuery FancyBox doesn't work so well as the original FancyBox but I didn't wish to add another JS library to make it work.
If you could add a patch here it would be nice.
Comment #2
lopolencastredealmeida commentedI made the patch by your request but it really wont need to exist and you shouldn't had the need to change anything in the jQuery plugin to achieve this. Defaults are modifiable in the theme files and don't require a modification in the jQuery plugin.
Locate in page.tpl.php:
and change it by the following:
And it should be enough. Just needed to add two lines.
If you really want you can use the following patch but it really doesn't make too much sense to me.
All other patches are at #369329: Several patches to the Launchpad theme.