Commit 95d1f22e authored by Giovanni Mascellani's avatar Giovanni Mascellani

Fix links to jquery.

parent cd1390e2
embed usr/share/javascript/jquery/jquery.js usr/share/gitit/data/static/js/jquery.js
embed usr/share/javascript/jquery-ui/ui/jquery.ui.core.js usr/share/gitit/data/static/js/jquery.ui.core.js
embed usr/share/javascript/jquery-ui/ui/jquery.ui.droppable.js usr/share/gitit/data/static/js/jquery.ui.droppable.js
embed usr/share/javascript/jquery-ui/ui/jquery.ui.draggable.js usr/share/gitit/data/static/js/jquery.ui.draggable.js
embed usr/share/javascript/jquery-ui/ui/jquery.ui.tabs.js usr/share/gitit/data/static/js/jquery.ui.tabs.js
embed usr/share/javascript/jquery-hotkeys/jquery.hotkeys.js usr/share/gitit/data/static/js/jquery.hotkeys.js
embed /usr/share/javascript/jquery/jquery.min.js usr/share/gitit/data/static/js/jquery.min.js
embed /usr/share/javascript/jquery-ui/jquery-ui.min.js usr/share/gitit/data/static/js/jquery-ui.min.js
embed /usr/share/javascript/jquery-ui/css/smoothness/jquery-ui.min.css usr/share/gitit/data/static/css/jquery-ui.min.css
embed /usr/share/javascript/jquery-hotkeys/jquery.hotkeys.js usr/share/gitit/data/static/js/jquery.hotkeys.js
......@@ -18,7 +18,19 @@ Index: gitit/src/Network/Gitit/Layout.hs
_ -> base' ++ "/js/" ++ x
- scripts = ["jquery-1.2.6.min.js", "jquery-ui-combined-1.6rc2.min.js", "footnotes.js"] ++ pgScripts layout
+ scripts = ["jquery.js", "jquery.ui.core.js", "jquery.ui.draggable.js", "jquery.ui.droppable.js", "jquery.ui.tabs.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$
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment