From 396c2143d9f0196126af5d24f23e4b286f55d830 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 16 Dec 2010 02:34:47 -0500 Subject: [PATCH] Fix for Bug 3987 - New Sys Prefs Branch - Alphabetize prefs in sections Adding jquery tablesorter, sorting on sys pref variable by default Signed-off-by: Nicole Engard Signed-off-by: Chris Cormack --- koha-tmpl/intranet-tmpl/prog/en/js/pages/preferences.js | 7 +++++++ .../intranet-tmpl/prog/en/modules/admin/preferences.tmpl | 6 ++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/pages/preferences.js b/koha-tmpl/intranet-tmpl/prog/en/js/pages/preferences.js index 6f0d064921..cbf98b86fd 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/pages/preferences.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/pages/preferences.js @@ -1,3 +1,10 @@ +$(document).ready(function() { + $("table.preferences").tablesorter({ + sortList: [[0,0]], + headers: { 1: { sorter:false}} + }); +}); + // We can assume 'KOHA' exists, as we depend on KOHA.AJAX KOHA.Preferences = { diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tmpl index b9bfd4f5e4..3ae028136c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tmpl @@ -1,6 +1,7 @@ Koha › Administration › System Preferences + /css/preferences.css" /> /css/humanmsg.css" /> @@ -48,11 +49,12 @@ -

+

+
-
PreferenceValue
+
PreferenceValue
PreferenceValue
-- 2.39.5