[Pkg-javascript-commits] [libjs-chosen] 02/04: Sanitize examples

David Prévot taffit at moszumanska.debian.org
Thu Jul 31 18:44:03 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository libjs-chosen.

commit 6f05983647c9c1f96bfcfb8d2190a8ac6f0c5c9e
Author: David Prévot <taffit at debian.org>
Date:   Thu Jul 31 13:30:06 2014 -0400

    Sanitize examples
---
 .../0001-Do-not-pick-JavaScript-from-Google.patch  | 35 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 36 insertions(+)

diff --git a/debian/patches/0001-Do-not-pick-JavaScript-from-Google.patch b/debian/patches/0001-Do-not-pick-JavaScript-from-Google.patch
new file mode 100644
index 0000000..ab76df5
--- /dev/null
+++ b/debian/patches/0001-Do-not-pick-JavaScript-from-Google.patch
@@ -0,0 +1,35 @@
+From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit at debian.org>
+Date: Thu, 31 Jul 2014 13:28:51 -0400
+Subject: Do not pick JavaScript from Google
+
+---
+ example.jquery.html | 2 +-
+ example.proto.html  | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/example.jquery.html b/example.jquery.html
+index ee3e826..1a59040 100644
+--- a/example.jquery.html
++++ b/example.jquery.html
+@@ -1358,7 +1358,7 @@
+     </ol>
+     
+   </div>
+-  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"></script>
++  <script src="jquery/jquery.min.js" type="text/javascript"></script>
+   <script src="chosen/chosen.jquery.js" type="text/javascript"></script>
+   <script type="text/javascript"> $(".chzn-select").chosen(); $(".chzn-select-deselect").chosen({allow_single_deselect:true}); </script>
+   </form>
+diff --git a/example.proto.html b/example.proto.html
+index 6ffb471..bedc177 100644
+--- a/example.proto.html
++++ b/example.proto.html
+@@ -1357,7 +1357,7 @@
+     </ol>
+     
+   </div>
+-  <script src="https://ajax.googleapis.com/ajax/libs/prototype/1.7.0.0/prototype.js" type="text/javascript"></script>
++  <script src="prototype/prototype.js" type="text/javascript"></script>
+   <script src="chosen/chosen.proto.js" type="text/javascript"></script>
+   <script type="text/javascript">
+   document.observe('dom:loaded', function(evt) {
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..c9b802c
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Do-not-pick-JavaScript-from-Google.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/libjs-chosen.git



More information about the Pkg-javascript-commits mailing list