summaryrefslogtreecommitdiff
path: root/modules_v3/lightbox/js
diff options
context:
space:
mode:
authorŁukasz Wilenski <wooc@gazeta.pl>2011-10-22 16:55:59 +0000
committerŁukasz Wilenski <wooc@gazeta.pl>2011-10-22 16:55:59 +0000
commit0ab1533ab4d2510a2fda997ed433c055911f0569 (patch)
tree8aac5a73aec119aca4ea601056599a1966854a06 /modules_v3/lightbox/js
parent53974dba57534affa41e3efd68cca0ea1ae5bbf7 (diff)
downloadwebtrees-0ab1533ab4d2510a2fda997ed433c055911f0569.tar.gz
webtrees-0ab1533ab4d2510a2fda997ed433c055911f0569.tar.bz2
webtrees-0ab1533ab4d2510a2fda997ed433c055911f0569.zip
#796803 - Album Notes Icon Remains From Original Image
Diffstat (limited to 'modules_v3/lightbox/js')
-rw-r--r--modules_v3/lightbox/js/clsource_music.js30
-rw-r--r--modules_v3/lightbox/js/wz_tooltip.js7
2 files changed, 13 insertions, 24 deletions
diff --git a/modules_v3/lightbox/js/clsource_music.js b/modules_v3/lightbox/js/clsource_music.js
index 314620ca8a..8851438df3 100644
--- a/modules_v3/lightbox/js/clsource_music.js
+++ b/modules_v3/lightbox/js/clsource_music.js
@@ -1,7 +1,5 @@
/* clsource_music.js - Author Brian Holland .... email webman@windmillway.f2s.com - (modified from Clsource.js - Author Pyro ... email pyrex@chello.hu)
- * @package webtrees
- * @subpackage Module
- * @version $Id$
+ * @$Id$
* @author Brian Holland
*/
@@ -221,7 +219,6 @@ var CB_Close_Win = CB_Close_Win;
}
// End function keyboard ----------------------------------------------
-
// Mousewheel for zooming ---------------------------------------------
// if (zoomSet == 2) {
function handle(delta) {
@@ -265,7 +262,6 @@ var CB_Close_Win = CB_Close_Win;
//}
// End Mousewheel for zooming ---------------------------------------------
-
// Music Player Class ----------------------------------------------
function Player () {
this.paused = true;
@@ -684,7 +680,6 @@ var CB_Close_Win = CB_Close_Win;
OnLoad("load", CB_Init);
-
function CB_Init() {
//BH --------------- Changed following lines for IE7 arrow keys -------------
if (navigator.appVersion.indexOf("MSIE")!=-1){
@@ -958,7 +953,6 @@ var CB_Close_Win = CB_Close_Win;
}
}
-
function CB_ClickURL(a) {
CB_iFr.src = "";
// alert("Open = " + clicks);
@@ -1331,8 +1325,10 @@ var CB_Close_Win = CB_Close_Win;
if (notey != "&lt;br /&gt;" && notey) {
CB_Txt3.innerHTML = "<a href=\"JavaScript:void(0);\" onclick=\"TipTog('<font color=#008800><b>" + CB_ImgNotes2 + ":</b></font><br />" + notey + "', CENTERWINDOW, false, DELAY, 0, TEXTALIGN, '" + CB_Alignm + "', WIDTH, -450, BGCOLOR, '#fffbcc', BALLOON, true, BALLOONSTEMWIDTH, 0, ABOVE, false, BORDERCOLOR, '', TITLEBGCOLOR, '', CLOSEBTNTEXT, 'X', CLOSEBTN, false, CLOSEBTNCOLORS, ['#ff0000', '#ffffff', '#ffffff', '#ff0000'], OFFSETY, -25, OFFSETX, 40, STICKY, true, PADDING, 6, CLICKCLOSE, true );\" ></a>";
CB_Txt3a.innerHTML = "<a href=\"JavaScript:void(0);\" onclick=\"TipTog('<font color=#008800><b>" + CB_ImgNotes2 + ":</b></font><br />" + notey + "', CENTERWINDOW, false, DELAY, 0, TEXTALIGN, '" + CB_Alignm + "', WIDTH, -450, BGCOLOR, '#fffbcc', BALLOON, true, BALLOONSTEMWIDTH, 0, ABOVE, false, BORDERCOLOR, '', TITLEBGCOLOR, '', CLOSEBTNTEXT, 'X', CLOSEBTN, false, CLOSEBTNCOLORS, ['#ff0000', '#ffffff', '#ffffff', '#ff0000'], OFFSETY, -25, OFFSETX, 40, STICKY, true, PADDING, 6, CLICKCLOSE, true );\" ><img id=\"CB_PicNotes\" title=\"" + CB_ImgNotes + "\" src=\"" + CB_PicDir + CB_PictureNotes + "\" alt=\"\" /></a>";
-
- }
+ } else {
+ CB_Txt3.innerHTML = "";
+ CB_Txt3a.innerHTML = "";
+ }
CB_Txt2.onclick = function () { window.location.href = 'mediaviewer.php?mid='+MIDa+'&ged='+GEDCOMa; return false; };
CB_Txt2a.onclick = function () { window.location.href = 'mediaviewer.php?mid='+MIDa+'&ged='+GEDCOM; return false; };
} else {
@@ -1521,8 +1517,6 @@ var CB_Close_Win = CB_Close_Win;
return;
}
-
-
function closeZoom() {
CB_ImgWidthOld = CB_ImgWidthOrig;
CB_ImgHeightOld = CB_ImgHeightOrig;
@@ -1639,6 +1633,9 @@ var CB_Close_Win = CB_Close_Win;
// ENABLE NOTES DISPLAY DURING SLIDESHOW (Remove the comment on the following line)
// Tip(decode_htmlspecialchars(notey1), CENTERWINDOW, true, DELAY, 0, TEXTALIGN, CB_Alignm, WIDTH, CB_ImgWidth-30, BGCOLOR, '#fffbcc', BALLOON, true, BALLOONSTEMWIDTH, 0, ABOVE, true, BORDERCOLOR, '', TITLEBGCOLOR, '', CLOSEBTNTEXT, 'X', CLOSEBTN, false, CLOSEBTNCOLORS, ['#ff0000', '#ffffff', '#ffffff', '#ff0000'], OFFSETY, -10-((DocSizeY-BrSizeY)/2)+(CB_ImgHeight/2)-(spacer), OFFSETX, 0, STICKY, true, PADDING, 6, CLICKCLOSE, true );
+ } else {
+ CB_Txt3.innerHTML = "";
+ CB_Txt3a.innerHTML = "";
}
} else {
if (CB_ShowImgURL == "be") {
@@ -1661,6 +1658,9 @@ var CB_Close_Win = CB_Close_Win;
// alert(brs + " - " + spacer);
CB_Txt3.innerHTML = "<a href=\"JavaScript:void(0);\" onclick=\"TipTog('<font color=#008800><b>" + CB_ImgNotes2 + ":</b></font><br />" + notey2 + "', CENTERWINDOW, true, DELAY, 0, TEXTALIGN, '" + CB_Alignm + "', WIDTH, "+CB_ImgWidth+"-30, BGCOLOR, '#fffbcc', BALLOON, true , BALLOONSTEMWIDTH, 0, ABOVE, true, BORDERCOLOR, '', TITLEBGCOLOR, '', CLOSEBTNTEXT, 'X', CLOSEBTN, false, CLOSEBTNCOLORS, ['#ff0000', '#ffffff', '#ffffff', '#ff0000'], OFFSETY, 150-" + ((DocSizeY-BrSizeY)/2) + ", OFFSETX, 0, STICKY, true, PADDING, 6, CLICKCLOSE, true );\" ></a>";
CB_Txt3a.innerHTML = "<a href=\"JavaScript:void(0);\" onclick=\"TipTog('<font color=#008800><b>" + CB_ImgNotes2 + ":</b></font><br />" + notey2 + "', CENTERWINDOW, true, DELAY, 0, TEXTALIGN, '" + CB_Alignm + "', WIDTH, "+CB_ImgWidth+"-30, BGCOLOR, '#fffbcc', BALLOON, true, BALLOONSTEMWIDTH, 0, ABOVE, true, BORDERCOLOR, '', TITLEBGCOLOR, '', CLOSEBTNTEXT, 'X', CLOSEBTN, false, CLOSEBTNCOLORS, ['#ff0000', '#ffffff', '#ffffff', '#ff0000'], OFFSETY, -10-" + ((DocSizeY-BrSizeY)/2) + "+" +(CB_ImgHeight/2)+ "-" +(spacer)+ ", OFFSETX, 0, STICKY, true, PADDING, 6, CLICKCLOSE, true );\" ><img id=\"CB_PicNotes\" title=\"" + CB_ImgNotes + "\" src=\"" + CB_PicDir + CB_PictureNotes + "\" alt=\"\" /></a>";
+ } else {
+ CB_Txt3.innerHTML = "";
+ CB_Txt3a.innerHTML = "";
}
}
}
@@ -1736,12 +1736,10 @@ var CB_Close_Win = CB_Close_Win;
CB_Txt2.onclick = function () { window.location.href = 'mediaviewer.php?mid='+MID+'&ged='+GEDCOM; return false; };
CB_Txt2a.onclick = function () { window.location.href = 'mediaviewer.php?mid='+MID+'&ged='+GEDCOM; return false; };
//CB_Txt3.onclick = function () { alert(CB_Gallery[CB_ActImgId][5]); };
-
}else{
CB_Txt2.onclick = function () { CB_Close(); };
CB_Txt2a.onclick = function () { CB_Close(); };
}
-
return true;
}
@@ -2054,8 +2052,6 @@ var CB_Close_Win = CB_Close_Win;
}
}
}
-
-
// ---------------------------------------------------
function showFlash(){
@@ -2072,7 +2068,6 @@ function showFlash(){
// ---------------------------------------------------
-
function hideFlash(){
var flashObjects = document.getElementsByTagName("object");
for (i = 0; i < flashObjects.length; i++) {
@@ -2213,7 +2208,6 @@ dragDrop = {
},
-
releaseElement: function() {
removeEventSimple(document,'mousemove',dragDrop.dragMouse);
removeEventSimple(document,'mouseup',dragDrop.releaseElement);
@@ -2225,7 +2219,6 @@ dragDrop = {
}
}
-
function addEventSimple(obj,evt,fn) {
if (obj.addEventListener)
obj.addEventListener(evt,fn,false);
@@ -2239,5 +2232,4 @@ function removeEventSimple(obj,evt,fn) {
else if (obj.detachEvent)
obj.detachEvent('on'+evt,fn);
}
-
// --------------------------------------------------------------------------------------
diff --git a/modules_v3/lightbox/js/wz_tooltip.js b/modules_v3/lightbox/js/wz_tooltip.js
index b301545afd..f989135783 100644
--- a/modules_v3/lightbox/js/wz_tooltip.js
+++ b/modules_v3/lightbox/js/wz_tooltip.js
@@ -102,9 +102,6 @@ config. Width = 0 // Tooltip width; 0 for automatic adaption to tooltip cont
// -1: tooltip width confined to the width required for the titlebar
//======= END OF TOOLTIP CONFIG, DO NOT CHANGE ANYTHING BELOW ==============//
-
-
-
//===================== PUBLIC =============================================//
var CB_tt="";
function TipTog()
@@ -665,7 +662,7 @@ function tt_MkTipSubDivs()
('<td align="right" style="' + sCss
+ 'text-align:right;">'
+ '<span id="WzClOsE" style="position:relative;left:2px;padding-left:2px;padding-right:2px;'
- + 'cursor:' + (tt_ie ? 'hand' : 'pointer')
+ + 'cursor:pointer'
+ ';" onmouseover="tt_OnCloseBtnOver(1)" onmouseout="tt_OnCloseBtnOver(0)" onclick="tt_HideInit()">'
+ tt_aV[CLOSEBTNTEXT]
+ '</span></td>')
@@ -906,7 +903,7 @@ function tt_OpDeHref(el)
el.t_href = el.getAttribute("href");
el.t_stats = window.status;
el.removeAttribute("href");
- el.style.cursor = "hand";
+ el.style.cursor = "pointer";
tt_AddEvtFnc(el, "mousedown", tt_OpReHref);
window.status = el.t_href;
tt_elDeHref = el;