From 3277c2bc297b1720e64477e03df95176288d6a79 Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Sun, 2 Oct 2011 11:08:12 +0000 Subject: [PATCH] Add the class jquery-tablesorter to all tables that are made sortable. Use this classname to raise the specificity of the sortHeader, so that it is more difficult to accidently override with local css. Followup to r98069 Move the css into a seperate file and move the images for it to the jquery directory. --- resources/Resources.php | 1 + .../jquery}/images/sort_both.gif | Bin .../jquery}/images/sort_down.gif | Bin .../jquery}/images/sort_none.gif | Bin .../common => resources/jquery}/images/sort_up.gif | Bin resources/jquery/jquery.tablesorter.js | 1 + 6 files changed, 2 insertions(+) rename {skins/common => resources/jquery}/images/sort_both.gif (100%) rename {skins/common => resources/jquery}/images/sort_down.gif (100%) rename {skins/common => resources/jquery}/images/sort_none.gif (100%) rename {skins/common => resources/jquery}/images/sort_up.gif (100%) diff --git a/resources/Resources.php b/resources/Resources.php index 062f2563ec..f5ad22121f 100644 --- a/resources/Resources.php +++ b/resources/Resources.php @@ -183,6 +183,7 @@ return array( ), 'jquery.tablesorter' => array( 'scripts' => 'resources/jquery/jquery.tablesorter.js', + 'styles' => 'resources/jquery/jquery.tablesorter.css', 'messages' => array( 'sort-descending', 'sort-ascending' ), ), 'jquery.textSelection' => array( diff --git a/skins/common/images/sort_both.gif b/resources/jquery/images/sort_both.gif similarity index 100% rename from skins/common/images/sort_both.gif rename to resources/jquery/images/sort_both.gif diff --git a/skins/common/images/sort_down.gif b/resources/jquery/images/sort_down.gif similarity index 100% rename from skins/common/images/sort_down.gif rename to resources/jquery/images/sort_down.gif diff --git a/skins/common/images/sort_none.gif b/resources/jquery/images/sort_none.gif similarity index 100% rename from skins/common/images/sort_none.gif rename to resources/jquery/images/sort_none.gif diff --git a/skins/common/images/sort_up.gif b/resources/jquery/images/sort_up.gif similarity index 100% rename from skins/common/images/sort_up.gif rename to resources/jquery/images/sort_up.gif diff --git a/resources/jquery/jquery.tablesorter.js b/resources/jquery/jquery.tablesorter.js index 8085093cd0..0030b4cb30 100644 --- a/resources/jquery/jquery.tablesorter.js +++ b/resources/jquery/jquery.tablesorter.js @@ -540,6 +540,7 @@ return; } } + $table.addClass( "jquery-tablesorter" ); // New config object. table.config = {}; -- 2.20.1