From d9a464b54052979ce7b8c74190ca14c56e5fb3b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Fri, 29 Oct 2010 08:10:06 +0000 Subject: [PATCH] - Tablesort CSS umbenannt - korrektes sortierten von Umlauten mit Tablesorter --- cis/private/lehre/abgabe_lektor_terminuebersicht.php | 3 +-- include/js/jquery.tablesorter.js | 6 ++++++ skin/{style.css => tablesort.css} | 3 ++- wawi/kontouebersicht.php | 5 ++--- 4 files changed, 11 insertions(+), 6 deletions(-) rename skin/{style.css => tablesort.css} (94%) diff --git a/cis/private/lehre/abgabe_lektor_terminuebersicht.php b/cis/private/lehre/abgabe_lektor_terminuebersicht.php index a7c64ecf5..3ac044590 100644 --- a/cis/private/lehre/abgabe_lektor_terminuebersicht.php +++ b/cis/private/lehre/abgabe_lektor_terminuebersicht.php @@ -36,7 +36,7 @@ echo ' Terminübersicht - + @@ -48,7 +48,6 @@ echo ' $("#myTable").tablesorter( { sortList: [[0,0]], - widthFixed: false, widgets: [\'zebra\'] }); } diff --git a/include/js/jquery.tablesorter.js b/include/js/jquery.tablesorter.js index fb4f2d56c..f16050d50 100644 --- a/include/js/jquery.tablesorter.js +++ b/include/js/jquery.tablesorter.js @@ -237,6 +237,12 @@ t = $(node).text(); } } + t=t.replace('ö','o'); + t=t.replace('Ö','O'); + t=t.replace('ü','u'); + t=t.replace('Ü','U'); + t=t.replace('ä','a'); + t=t.replace('Ä','A'); return t; } diff --git a/skin/style.css b/skin/tablesort.css similarity index 94% rename from skin/style.css rename to skin/tablesort.css index ee5cc16b2..d3249912d 100644 --- a/skin/style.css +++ b/skin/tablesort.css @@ -16,7 +16,8 @@ table.tablesorter thead tr th, table.tablesorter tfoot tr th { table.tablesorter thead tr .header { background-image: url(images/bg_sort.gif); background-repeat: no-repeat; - background-position: center right; + background-position: center left; + padding-left: 20px; cursor: pointer; } table.tablesorter tbody td { diff --git a/wawi/kontouebersicht.php b/wawi/kontouebersicht.php index f4dc8ce23..6581bce97 100644 --- a/wawi/kontouebersicht.php +++ b/wawi/kontouebersicht.php @@ -31,7 +31,7 @@ require_once('../include/benutzerberechtigung.class.php'); WaWi Konten - + @@ -45,7 +45,6 @@ require_once('../include/benutzerberechtigung.class.php'); $("#myTable").tablesorter( { sortList: [[1,0]], - widthFixed: true, widgets: ['zebra'] }); } @@ -53,7 +52,7 @@ require_once('../include/benutzerberechtigung.class.php'); function conf_del() { - return confirm('Diese Gruppe wirklich löschen?'); + return confirm('Dieses Konto wirklich löschen?'); }