File: jquery.patch

package info (click to toggle)
gitit 0.12.1.1%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,008 kB
  • ctags: 78
  • sloc: haskell: 4,963; xml: 245; sh: 65; makefile: 16
file content (40 lines) | stat: -rw-r--r-- 2,040 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Description: Use libjs-jquery instead of embedded code
 Patch gitit to use the javascript linked from the libjs-jquery package,
 instead of the embedded one.
Author: Giovanni Mascellani <gio@debian.org>
Index: gitit/data/templates/expire.st
===================================================================
--- gitit.orig/data/templates/expire.st
+++ gitit/data/templates/expire.st
@@ -1,5 +1,5 @@
 $if(usecache)$
-<script type="text/javascript" src="$base$/js/jquery.hotkeys-0.7.9.min.js"></script>
+<script type="text/javascript" src="$base$/js/jquery.hotkeys.js"></script>
 <script type="text/javascript">
 /* <![CDATA[ */
      \$(document).bind("keydown", "ctrl+r", function() {
Index: gitit/src/Network/Gitit/Layout.hs
===================================================================
--- gitit.orig/src/Network/Gitit/Layout.hs
+++ gitit/src/Network/Gitit/Layout.hs
@@ -78,7 +78,7 @@ filledPageTemplate base' cfg layout html
                            'h':'t':'t':'p':_  -> x
                            _                  -> base' ++ "/js/" ++ x
 
-      scripts  = ["jquery-1.2.6.min.js", "jquery-ui-combined-1.6rc2.min.js", "footnotes.js"] ++ pgScripts layout
+      scripts  = ["jquery.min.js", "jquery-ui.min.js", "footnotes.js"] ++ pgScripts layout
       scriptLink x = script ! [src (prefixedScript x),
         thetype "text/javascript"] << noHtml
       javascriptlinks = renderHtmlFragment $ concatHtml $ map scriptLink scripts
Index: gitit/data/templates/page.st
===================================================================
--- gitit.orig/data/templates/page.st
+++ gitit/data/templates/page.st
@@ -9,6 +9,7 @@
     <link href="$base$/_feed$pageUrl$" type="application/atom+xml" rel="alternate" title="$wikititle$ - $pagetitle$" />
     $endif$
     <title>$wikititle$ - $pagetitle$</title>
+    <link href="$base$/css/jquery-ui.min.css" rel="stylesheet" media="print" type= "text/css" />
     $if(printable)$
     <link href="$base$/css/print.css" rel="stylesheet" media="all" type= "text/css" />
     $else$