Commit b6cb7c46 authored by sgalinsk's avatar sgalinsk
Browse files

readded the iframe scrolling option and added the changes as a patch this time


git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/pmkshadowbox/branches/shadowbox3@28369 735d13b6-9817-0410-8766-e36946ffe9aa
parent 0d38d25e
(function(a){a.iframe=function(c){this.obj=c;var b=document.getElementById("sb-overlay");this.height=c.height?parseInt(c.height,10):b.offsetHeight;this.width=c.width?parseInt(c.width,10):b.offsetWidth};a.iframe.prototype={append:function(b,e,d){this.id=e;var c='<iframe id="'+e+'" name="'+e+'" height="100%" width="100%" frameborder="0" marginwidth="0" marginheight="0" scrolling="auto"';if(a.client.isIE){c+=' allowtransparency="true"';if(a.client.isIE6){c+=" src=\"javascript:false;document.write('');\""}}c+="></iframe>";b.innerHTML=c},remove:function(){var b=document.getElementById(this.id);if(b){a.lib.remove(b);if(a.client.isGecko){delete window.frames[this.id]}}},onLoad:function(){var b=a.client.isIE?document.getElementById(this.id).contentWindow:window.frames[this.id];b.location.href=this.obj.content}}})(Shadowbox);
\ No newline at end of file
(function(a){a.iframe=function(c){this.obj=c;var b=document.getElementById("sb-overlay");this.height=c.height?parseInt(c.height,10):b.offsetHeight;this.width=c.width?parseInt(c.width,10):b.offsetWidth};a.iframe.prototype={append:function(b,e,d){this.id=e;var c='<iframe id="'+e+'" name="'+e+'" height="100%" width="100%" frameborder="0" marginwidth="0" marginheight="0" scrolling="' + a.getIframeScrollingOption() + '"';if(a.client.isIE){c+=' allowtransparency="true"';if(a.client.isIE6){c+=" src=\"javascript:false;document.write('');\""}}c+="></iframe>";b.innerHTML=c},remove:function(){var b=document.getElementById(this.id);if(b){a.lib.remove(b);if(a.client.isGecko){delete window.frames[this.id]}}},onLoad:function(){var b=a.client.isIE?document.getElementById(this.id).contentWindow:window.frames[this.id];b.location.href=this.obj.content}}})(Shadowbox);
This diff is collapsed.
This diff is collapsed.
......@@ -50,7 +50,7 @@
var html = '<iframe id="' + id + '" name="' + id + '" height="100%" ' +
'width="100%" frameborder="0" marginwidth="0" marginheight="0" ' +
'scrolling="auto"';
'scrolling="' + S.getIframeScrollingOption() + '"';
if(S.client.isIE){
// prevent brief whiteout while loading iframe source
......
......@@ -479,6 +479,10 @@
return S.current > -1 ? S.gallery[S.current] : null;
},
getIframeScrollingOption: function(){
return S.options.iframeScrolling;
},
/**
* Determines if there is a next piece to display in the current
* gallery.
......@@ -1739,6 +1743,7 @@
// each item in gallery
displayCounter: true, // display the gallery counter
displayNav: true, // show the navigation controls
iframeScrolling: 'auto',// iframe scrolling (auto, no, yes
fadeDuration: 0.35, // duration of the fade animations (in seconds)
initialHeight: 160, // initial height (pixels)
initialWidth: 320, // initial width (pixels)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment