www/trac.adium.im 70:7c79e621aade: A hack to prevent /newticket ...

commits at adium.im commits at adium.im
Mon Mar 21 22:37:22 UTC 2011


details:	http://hg.adium.im/www/trac.adium.im/rev/7c79e621aade
revision:	70:7c79e621aade
branch:		(none)
author:		Thijs Alkemade <thijsalkemade at gmail.com>
date:		Mon Mar 21 23:37:14 2011 +0100

A hack to prevent /newticket from scrolling past the hot issues.

diffs (19 lines):

diff -r 2d98db6cac10 -r 7c79e621aade templates/site.html
--- a/templates/site.html	Mon Mar 21 22:39:24 2011 +0100
+++ b/templates/site.html	Mon Mar 21 23:37:14 2011 +0100
@@ -8,6 +8,15 @@
 
     <link rel="stylesheet" type="text/css" href="${href.chrome('site/design.css')}" />
     <link rel="stylesheet" type="text/css" href="http://adium.im/help/css/hot.css" />
+    <py:if test="req.environ['PATH_INFO'] == '/newticket' and (not 'preview' in req.args)">
+		
+    <script type="text/javascript">
+        jQuery(document).ready(function($) {
+            window.scrollTo(0,0);
+        });
+    </script>
+
+    </py:if>
   </head>
 
   <body py:match="body" py:attrs="select('@*')">




More information about the commits mailing list