Commit f056ee68 authored by sgalinsk's avatar sgalinsk

[TASK] Add missing shadowbox patches


git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/pmkshadowbox/trunk@76527 735d13b6-9817-0410-8766-e36946ffe9aa
parent d3a3416a
Index: source/players/iframe.js
===================================================================
--- source/players/iframe.js (revision 1134)
+++ source/players/iframe.js (working copy)
@@ -41,7 +41,7 @@
var html = '<iframe id="' + this.id + '" name="' + this.id + '" height="100%" ' +
'width="100%" frameborder="0" marginwidth="0" marginheight="0" ' +
- 'style="visibility:hidden;" ' +
+ 'style="visibility:visible;" ' +
'onload="this.style.visibility=\'visible\'" ' +
'scrolling="' + scrolling + '"';
Index: resources/shadowbox/source/core.js
===================================================================
--- resources/shadowbox/source/core.js (revision 1148)
+++ resources/shadowbox/source/core.js (working copy)
@@ -779,7 +779,7 @@
obj.player = S.getPlayer(obj.content);
// HTML options always trump JavaScript options, so do these last
- var rel = link.getAttribute("rel");
+ var rel = link.getAttribute("rel") || link.getAttribute('data-rel');
if (rel) {
// extract gallery name from shadowbox[name] format
var match = rel.match(galleryName);
Index: resources/shadowbox/source/cache.js
===================================================================
--- resources/shadowbox/source/cache.js (revision 1148)
+++ resources/shadowbox/source/cache.js (working copy)
@@ -41,7 +41,7 @@
if (!selector) {
var rel;
each(document.getElementsByTagName("a"), function(i, el) {
- rel = el.getAttribute("rel");
+ rel = el.getAttribute("rel") || el.getAttribute('data-rel');
if (rel && relAttr.test(rel))
links.push(el);
});
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