[Pkg-owncloud-commits] [SCM] owncloud.git branch, master, updated. debian/4.0.8debian-1.5-20-g184aa39
David Prévot
taffit at debian.org
Thu Mar 21 23:25:23 UTC 2013
The following commit has been merged in the master branch:
commit 243d422e724474a432bd4fad40b48412516065c8
Author: David Prévot <taffit at debian.org>
Date: Thu Mar 21 11:51:52 2013 -0400
Add missing jquery.onfontresize source
diff --git a/debian/changelog b/debian/changelog
index 4c29312..dad68be 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,6 +11,8 @@ owncloud (5.0.0+debian-1) UNRELEASED; urgency=low
* debian/repack.sh:
- Remove incompatible docs from Font Awesome
- Remove incompatible PDF from pdfjs
+ * debian/patches/04_add_onfontresize.diff: Add missing jquery.onfontresize
+ source
-- Paul van Tilburg <paulvt at debian.org> Fri, 02 Nov 2012 22:20:35 +0100
diff --git a/debian/patches/04_add_onfontresize.diff b/debian/patches/04_add_onfontresize.diff
new file mode 100644
index 0000000..8ca11e0
--- /dev/null
+++ b/debian/patches/04_add_onfontresize.diff
@@ -0,0 +1,58 @@
+Description: Add missing jquery.onfontresize source
+Author: Tom Deater (http://www.tomdeater.com)
+Origin: other, http://www.tomdeater.com/jquery/onfontresize/jquery.onfontresize.js
+Forwarded: todo
+Reviewed-by: David Prévot <taffit at debian.org>
+Last-Update: 2013-03-21
+--- /dev/null
++++ b/apps/contacts/js/jquery.onfontresize.js
+@@ -0,0 +1,48 @@
++/**
++ *
++ * Copyright (c) 2008 Tom Deater (http://www.tomdeater.com)
++ * Licensed under the MIT License:
++ * http://www.opensource.org/licenses/mit-license.php
++ *
++ * uses an iframe, sized in ems, to detect font size changes then trigger a "fontresize" event
++ * heavily based on code by Hedger Wang: http://www.hedgerwow.com/360/dhtml/js-onfontresize.html
++ *
++ * "fontresize" event is triggered on the document object
++ * subscribe to event using: $(document).bind("fontresize", function (event, data) {});
++ * "data" contains the current size of 1 em unit (in pixels)
++ *
++ */
++
++jQuery.onFontResize = (function ($) {
++ // initialize
++ $(document).ready(function () {
++ var $resizeframe = $("<iframe />")
++ .attr("id", "frame-onFontResize" + Date.parse(new Date))
++ .addClass("div-onfontresize")
++ .css({width: "100em", height: "10px", position: "absolute", borderWidth: 0, top: "-5000px", left: "-5000px"})
++ .appendTo("body");
++
++ if ($.browser.msie) {
++ // use IE's native iframe resize event
++ $resizeframe.bind("resize", function () {
++ $.onFontResize.trigger($resizeframe[0].offsetWidth / 100);
++ });
++ } else {
++ // everyone else uses script inside the iframe to detect resize
++ var doc = $resizeframe[0].contentWindow || $resizeframe[0].contentDocument || $resizeframe[0].document;
++ doc = doc.document || doc;
++ doc.open();
++ doc.write('<scri' + 'pt>window.onload = function(){var em = parent.jQuery(".div-onfontresize")[0];window.onresize = function(){if(parent.jQuery.onFontResize){parent.jQuery.onFontResize.trigger(em.offsetWidth / 100);}}};</scri' + 'pt>');
++ doc.close();
++ }
++
++ jQuery.onFontResize.initialSize = $resizeframe[0].offsetWidth / 100;
++ });
++
++ return {
++ // public method, so it can be called from within the iframe
++ trigger: function (em) {
++ $(document).trigger("fontresize", [em]);
++ }
++ };
++}) (jQuery);
+\ No newline at end of file
diff --git a/debian/patches/series b/debian/patches/series
index 478f829..520cb96 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,6 +1,7 @@
01_fix_data_path.diff
02_fix_crypt.diff
03_fix_phpmailer.diff
+04_add_onfontresize.diff
05_no_app_store.diff
fix_tar_require.diff
fix_sabre_requires.diff
--
owncloud.git
More information about the Pkg-owncloud-commits
mailing list