summaryrefslogtreecommitdiffstats
path: root/templates/devel/index.html
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-09-30 20:15:20 +0200
committerDan McGee <dan@archlinux.org>2010-09-30 20:15:20 +0200
commit3682fb285b9f131a56aed2c6cab8d303c6aae5ae (patch)
tree217509085054951d4fdcdb6d9f5c0b5099412e5b /templates/devel/index.html
parent0eac9698c6bdebdf5056a97b7c979b526d54ec15 (diff)
downloadarchweb-3682fb285b9f131a56aed2c6cab8d303c6aae5ae.tar.gz
archweb-3682fb285b9f131a56aed2c6cab8d303c6aae5ae.tar.xz
Move most inline JS into script file
We're getting to the point where we are starting to have a good chunk of JS scattered about. Centralize a lot of it for maintenance and performance purposes. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/devel/index.html')
-rw-r--r--templates/devel/index.html10
1 files changed, 1 insertions, 9 deletions
diff --git a/templates/devel/index.html b/templates/devel/index.html
index f285f7f..009a683 100644
--- a/templates/devel/index.html
+++ b/templates/devel/index.html
@@ -190,16 +190,8 @@
</div><!-- #dash-by-maintainer -->
{% load cdn %}{% jquery %}
<script type="text/javascript" src="/media/jquery.tablesorter.min.js"></script>
+<script type="text/javascript" src="/media/archweb.js"></script>
<script type="text/javascript">
-$.tablesorter.addParser({
- id: 'pkgcount',
- is: function(s) { return false; },
- format: function(s) {
- var m = s.match(/\d+/);
- return m ? parseInt(m[0]) : 0;
- },
- type: 'numeric'
-});
$(document).ready(function() {
$("#dash-myflagged:not(:has(tbody tr.empty))").tablesorter(
{widgets: ['zebra'], sortList: [[0,0]]});