Commit ced3fa01 authored by sgalinsk's avatar sgalinsk

fixed some code inspection errors reported by PhpStorm


git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/pmkshadowbox/trunk@43243 735d13b6-9817-0410-8766-e36946ffe9aa
parent 9e51ff1c
......@@ -169,6 +169,7 @@ class tx_ttnews_imageMarker extends tslib_pibase {
}
$cc = 0;
$theImgCode = '';
foreach ($imgs as $val) {
if ($cc == $imageNum)
break;
......
......@@ -25,7 +25,7 @@ function toggleLoading(on, callback) {
S.clearOpacity(loading);
if (callback)
callback();
}
};
if (anim) {
animate(loading, "opacity", 1, S.options.fadeDuration, wrapped);
......@@ -38,7 +38,7 @@ function toggleLoading(on, callback) {
S.clearOpacity(loading);
if (callback)
callback();
}
};
if (anim) {
animate(loading, "opacity", 0, S.options.fadeDuration, wrapped);
......@@ -98,5 +98,5 @@ S.print = function(){
S.setSave = function(){
var sv = get("sb-nav-save");
if (sv) sv.href = "index.php?eID=pmkshadowbox&mode=save&image=" + S.getCurrent()["content"];
}
};
......@@ -93,7 +93,7 @@
}
#sb-title-inner {
font-size: 16px;
padding: 0px 5px;
padding: 0 5px;
}
#sb-info, #sb-info-inner {
height: 20px;
......@@ -101,7 +101,7 @@
}
#sb-info-inner {
font-size: 12px;
padding: 0px 5px;
padding: 0 5px;
}
/* nav */
......@@ -181,9 +181,7 @@ div.sb-message a:link, div.sb-message a:visited {
.dropshadow-tr, .dropshadow-bl, .dropshadow-br {
position: absolute;
background-color: transparent;
background-image: url(shadow50.png);
background-repeat: no-repeat;
background: transparent url(shadow50.png) no-repeat;
width: 50%;
height: 50%;
}
......
......@@ -100,18 +100,12 @@
padding: 0;
overflow: hidden;
}
#sb-title, #sb-title-inner {
/* height: 26px;
line-height: 26px;*/
}
#sb-title-inner {
padding: 3px 0px;
padding: 3px 0;
font-size: 12px;
}
#sb-info, #sb-info-inner {
/* height: 20px;
line-height: 20px;*/
}
#sb-info-inner {
font-size: 12px;
}
......@@ -138,9 +132,7 @@
}
#sb-nav2 a#sb-nav-close {
display: block;
background-image: url(nav.png);
background-repeat: no-repeat;
background-position: -56px 0px;
background: url(nav.png) no-repeat -56px 0;
margin: 6px 3px 0 0;
height: 22px;
width: 22px;
......@@ -150,33 +142,25 @@
background-position: -56px -22px;
}
#sb-nav-next {
background-image: url(nav.png);
background-repeat: no-repeat;
background-position: -14px 0px;
background: url(nav.png) no-repeat -14px 0;
}
#sb-nav-next:hover {
background-position: -14px -14px;
}
#sb-nav-previous {
background-image: url(nav.png);
background-repeat: no-repeat;
background-position: 0px 0px;
background: url(nav.png) no-repeat 0 0;
}
#sb-nav-previous:hover {
background-position: 0px -14px;
background-position: 0 -14px;
}
#sb-nav-play {
background-image: url(nav.png);
background-repeat: no-repeat;
background-position: -28px 0px;
background: url(nav.png) no-repeat -28px 0;
}
#sb-nav-play:hover {
background-position: -28px -14px;
}
#sb-nav-pause {
background-image: url(nav.png);
background-repeat: no-repeat;
background-position: -42px 0px;
background: url(nav.png) no-repeat -42px 0;
}
#sb-nav-pause:hover {
background-position: -42px -14px;
......
......@@ -27,7 +27,7 @@ function toggleLoading(on, callback) {
S.clearOpacity(loading);
if (callback)
callback();
}
};
if (anim) {
animate(loading, "opacity", 1, S.options.fadeDuration, wrapped);
} else {
......@@ -39,7 +39,7 @@ function toggleLoading(on, callback) {
S.clearOpacity(loading);
if (callback)
callback();
}
};
if (anim) {
animate(loading, "opacity", 0, S.options.fadeDuration, wrapped);
......
......@@ -100,18 +100,12 @@
padding: 0;
overflow: hidden;
}
#sb-title, #sb-title-inner {
/* height: 26px;
line-height: 26px;*/
}
#sb-title-inner {
padding: 3px 0px;
padding: 3px 0;
font-size: 12px;
}
#sb-info, #sb-info-inner {
/* height: 20px;
line-height: 20px;*/
}
#sb-info-inner {
font-size: 12px;
}
......@@ -139,9 +133,7 @@
#sb-nav2 a#sb-nav-close {
display: block;
background-image: url(nav.png);
background-repeat: no-repeat;
background-position: -56px 0px;
background: url(nav.png) no-repeat -56px 0;
margin: 6px 3px 0 0;
height: 22px;
width: 22px;
......@@ -153,9 +145,7 @@
}
#sb-nav2 a#sb-nav-save {
display: block;
background-image: url(nav.png);
background-repeat: no-repeat;
background-position: -78px 0px;
background: url(nav.png) no-repeat -78px 0;
height: 16px;
width: 16px;
cursor: pointer;
......@@ -167,9 +157,7 @@
}
#sb-nav2 a#sb-nav-print {
display: block;
background-image: url(nav.png);
background-repeat: no-repeat;
background-position: -94px 0px;
background: url(nav.png) no-repeat -94px 0;
height: 16px;
width: 16px;
cursor: pointer;
......@@ -180,33 +168,25 @@
background-position: -94px -16px;
}
#sb-nav-next {
background-image: url(nav.png);
background-repeat: no-repeat;
background-position: -14px 0px;
background: url(nav.png) no-repeat -14px 0;
}
#sb-nav-next:hover {
background-position: -14px -14px;
}
#sb-nav-previous {
background-image: url(nav.png);
background-repeat: no-repeat;
background-position: 0px 0px;
background: url(nav.png) no-repeat 0 0;
}
#sb-nav-previous:hover {
background-position: 0px -14px;
background-position: 0 -14px;
}
#sb-nav-play {
background-image: url(nav.png);
background-repeat: no-repeat;
background-position: -28px 0px;
background: url(nav.png) no-repeat -28px 0;
}
#sb-nav-play:hover {
background-position: -28px -14px;
}
#sb-nav-pause {
background-image: url(nav.png);
background-repeat: no-repeat;
background-position: -42px 0px;
background: url(nav.png) no-repeat -42px 0;
}
#sb-nav-pause:hover {
background-position: -42px -14px;
......
......@@ -106,4 +106,4 @@ S.print = function(){
S.setSave = function(){
var sv = get("sb-nav-save");
if (sv) sv.href = "index.php?eID=pmkshadowbox&mode=save&image=" + S.getCurrent()["content"];
}
};
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