Reputation: 93
I am using fancybox with jquery for iframe. I set modal
to true
but the close button disappears. i read the documentation and use the convention "When true
, 'overlayShow
' is set to 'true
' and 'hideOnOverlayClick
', 'hideOnContentClick
', 'enableEscapeButton
', 'showCloseButton
' are set to 'false
'" but close button disappears.
Upvotes: 2
Views: 2130
Reputation: 1646
Place close image icon named fancybox_sprite.png
in css directory.
Upvotes: 0
Reputation: 195
When "modal": true then You can append the close button in the after show event like
afterShow : function() { $('.fancybox-skin').append(''); }
Hope this will help
Upvotes: 1
Reputation: 21
Please read my article here. http://anvlpopescu.wordpress.com/2013/12/10/jquery-fancybox-modal-iframe-with-close-button/
There is an workaround for this.
Upvotes: 1
Reputation: 41143
You may need to read the documentation again (and slower perhaps) and understand that when modal
is set to true
(as you wrote above), then showCloseButton
is set (automatically) to false
.
"showCloseButton": false
("modal": true
) means that the close button doesn't show up and that is the expected behavior.
Upvotes: 0