[SCM] calf/master: Add patch 2001 to use jQuery.colorbox (not jQuery.prettyPhoto).
js at users.alioth.debian.org
js at users.alioth.debian.org
Mon Feb 22 09:44:14 UTC 2016
The following commit has been merged in the master branch:
commit 3dd1622d0ace55f351ae31aab98e1c8d5474b8e6
Author: Jonas Smedegaard <dr at jones.dk>
Date: Mon Sep 15 02:45:25 2014 +0200
Add patch 2001 to use jQuery.colorbox (not jQuery.prettyPhoto).
diff --git a/debian/patches/2001_use_colorbox.patch b/debian/patches/2001_use_colorbox.patch
new file mode 100644
index 0000000..3138b0f
--- /dev/null
+++ b/debian/patches/2001_use_colorbox.patch
@@ -0,0 +1,45 @@
+Description: use jQuery.colorbox
+ The jQuery.prettyPhoto script used upstream as lightbox in
+ documentation includes mechanisms breaching privacy.
+ Those features are disabled in actual use, but just to be on the safe
+ side we replace with the simpler and safer jQuery.colorbox.
+Author: Jonas Smedegaard <dr at jones.dk>
+Last-Update: 2014-09-15
+Forwarded: No
+
+--- a/doc/manuals/scripts/manual.js
++++ b/doc/manuals/scripts/manual.js
+@@ -148,11 +148,7 @@
+ $("<br clear='all'/>").appendTo($("#index"));
+ }
+ }
+- $(".prettyPhoto").prettyPhoto({
+- theme: 'dark_rounded',
+- social_tools: '',
+- show_title: false,
+- });
++ $(".prettyPhoto").colorbox();
+ $(window).resize(resize);
+ $(window).scroll(scroll);
+ resize();
+--- a/doc/manuals/scripts/prettyPhoto.css
++++ b/doc/manuals/scripts/prettyPhoto.css
+@@ -168,3 +168,18 @@
+ * html .pp_top .pp_middle,* html .pp_bottom .pp_middle{left:0;position:static}
+ .pp_top .pp_right,.pp_bottom .pp_right{height:20px;left:auto;position:absolute;right:0;top:0;width:20px}
+ .pp_fade,.pp_gallery li.default a img{display:none}
++
++#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
++#cboxWrapper {max-width:none;}
++#cboxOverlay{position:fixed; width:100%; height:100%;}
++#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
++#cboxContent{position:relative;}
++#cboxLoadedContent{overflow:auto; -webkit-overflow-scrolling: touch;}
++#cboxTitle{margin:0;}
++#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
++#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
++.cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none; -ms-interpolation-mode:bicubic;}
++.cboxIframe{width:100%; height:100%; display:block; border:0; padding:0; margin:0;}
++#colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box; -moz-box-sizing:content-box; -webkit-box-sizing:content-box;}
++
++#cboxOverlay{background:url(../images/prettyPhoto/dark_rounded/contentPattern.png) repeat 0 0; opacity: 0.9; filter: alpha(opacity = 90);}
diff --git a/debian/patches/series b/debian/patches/series
index 2c9db86..15cfae0 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
1001_use_autoconf_dirnames.patch
1002-lv2core_to_lv2.patch
+2001_use_colorbox.patch
--
calf audio plugins packaging
More information about the pkg-multimedia-commits
mailing list