From acc0a833b04d5a5590629945471d3d9fbfe859a3 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Wed, 13 Jul 2005 23:58:00 +0000 Subject: [PATCH] Implement #2001 by Avar and www.kryogenix.org (see .js file for full credit) It adds the ability to get client-side sortable tables by assigning an id and a class ("sortable") to a table. --- RELEASE-NOTES | 5 +++++ includes/Skin.php | 1 + skins/MonoBook.php | 5 +++-- skins/monobook/main.css | 10 ++++++++++ 4 files changed, 19 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 0c6b485480..1fe70000a2 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -153,6 +153,10 @@ External hooks: application is included. This may not be on by default in final release, depending on support. +Sortable tables: + Since beta4 you can have a client-side sortable table. To make a table + sortable use class="sortable" and give it a uniq id ( id="foo" ). + And... A bunch of stuff we forgot to mention. @@ -575,6 +579,7 @@ of MediaWiki:Newpagetext) to &action=edit, if page is new. * show comment subject in preview when using section=new * use comment form when creating a new talk page * (bug 460) Properly handle
tags as a block. +* (bug 2001) Implement client-side sorting of table fields with JavaScript === Caveats === diff --git a/includes/Skin.php b/includes/Skin.php index 458a7a2d2a..3548dc835d 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -176,6 +176,7 @@ class Skin extends Linker { function getHeadScripts() { global $wgStylePath, $wgUser, $wgContLang, $wgAllowUserJs, $wgJsMimeType; $r = "\n"; + $r.= "\n"; if( $wgAllowUserJs && $wgUser->isLoggedIn() ) { $userpage = $wgUser->getUserPage(); $userjs = htmlspecialchars( $this->makeUrl( diff --git a/skins/MonoBook.php b/skins/MonoBook.php index 5d94cff2e0..a89f00aedc 100644 --- a/skins/MonoBook.php +++ b/skins/MonoBook.php @@ -64,8 +64,9 @@ class MonoBookTemplate extends QuickTemplate { data['jsvarurl' ]) { ?> - - data['usercss' ]) { ?> + + + data['usercss' ]) { ?> data['userjs' ]) { ?> data['userjsprev']) { ?> diff --git a/skins/monobook/main.css b/skins/monobook/main.css index 318b16c097..9369c672fd 100644 --- a/skins/monobook/main.css +++ b/skins/monobook/main.css @@ -1181,3 +1181,13 @@ p.revision_saved { color: green; font-weight:bold; } + +/* for OpenId */ +input#wpName { + /* FIXME : icon is not transparent */ + background: url(openid-inputicon.gif) no-repeat; + background-position: 0 50%; + background-color : #FFFFFF; + color : #000000; + padding-left: 18px; +} -- 2.20.1