packages: jquery-thickbox/jquery-thickbox.spec, jquery-thickbox/hide-peek-t...

glen glen at pld-linux.org
Tue Nov 3 16:25:37 CET 2009


Author: glen                         Date: Tue Nov  3 15:25:37 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- flash hide patch; rel 3

---- Files affected:
packages/jquery-thickbox:
   jquery-thickbox.spec (1.5 -> 1.6) , hide-peek-trough-obj.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/jquery-thickbox/jquery-thickbox.spec
diff -u packages/jquery-thickbox/jquery-thickbox.spec:1.5 packages/jquery-thickbox/jquery-thickbox.spec:1.6
--- packages/jquery-thickbox/jquery-thickbox.spec:1.5	Wed Sep 30 15:11:05 2009
+++ packages/jquery-thickbox/jquery-thickbox.spec	Tue Nov  3 16:25:32 2009
@@ -2,7 +2,7 @@
 Summary:	ThickBox
 Name:		jquery-thickbox
 Version:	3.1
-Release:	2
+Release:	3
 License:	MIT / GPL
 Group:		Applications/WWW
 Source0:	http://jquery.com/demo/thickbox/thickbox-code/thickbox.js
@@ -15,6 +15,7 @@
 Patch0:		no-global-css.patch
 Patch1:		no-doctype.patch
 Patch2:		animation-url.patch
+Patch3:		hide-peek-trough-obj.patch
 BuildRequires:	rpmbuild(macros) > 1.268
 BuildRequires:	yuicompressor
 Requires:	jquery
@@ -42,6 +43,7 @@
 %patch0 -p1
 %patch1 -p0
 %patch2 -p1
+%patch3 -p0
 
 # apache1/apache2 conf
 cat > apache.conf <<'EOF'
@@ -112,6 +114,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.6  2009/11/03 15:25:32  glen
+- flash hide patch; rel 3
+
 Revision 1.5  2009/09/30 13:11:05  glen
 - install animation gif
 

================================================================
Index: packages/jquery-thickbox/hide-peek-trough-obj.patch
diff -u /dev/null packages/jquery-thickbox/hide-peek-trough-obj.patch:1.1
--- /dev/null	Tue Nov  3 16:25:37 2009
+++ packages/jquery-thickbox/hide-peek-trough-obj.patch	Tue Nov  3 16:25:31 2009
@@ -0,0 +1,39 @@
+--- thickbox.js.orig	2009-11-03 15:36:58.310484745 +0200
++++ thickbox.js	2009-11-03 15:39:25.736303166 +0200
+@@ -31,6 +31,27 @@
+ function tb_show(caption, url, imageGroup) {//function called when the user clicks on a thickbox link
+ 
+ 	try {
++
++		// Hide some things, because they peek trough
++		$('select, iframe, object').css({ 'visibility' : 'hidden' });
++		// and stil show our result flashes
++		embeds = document.getElementsByTagName("embed");
++		for (i = 0; i != embeds.length; i++) {
++			if(embeds[i]['id'] != 'ampie'){
++				embeds[i].style.visibility = "hidden";
++			} else {
++				embeds[i].style.visibility = "";
++			}
++		}
++		embeds = document.getElementsByTagName("object");
++		for (i = 0; i != embeds.length; i++) {
++			if(embeds[i]['id'] != 'ampie'){
++				embeds[i].style.visibility = "hidden";
++			} else {
++				embeds[i].style.visibility = "";
++			}
++		}
++
+ 		if (!document.body.style.maxHeight && document.documentElement.clientHeight) {//if IE 6 with doctype
+ 			$("body","html").css({height: "100%", width: "100%"});
+ 			$("html").css("overflow","hidden");
+@@ -276,6 +297,8 @@
+ 	}
+ 	document.onkeydown = "";
+ 	document.onkeyup = "";
++
++	$('select, iframe, object, embed').css({ 'visibility' : 'visible' });
+ 	return false;
+ }
+ 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/jquery-thickbox/jquery-thickbox.spec?r1=1.5&r2=1.6&f=u



More information about the pld-cvs-commit mailing list