Add the class jquery-tablesorter to all tables that are made sortable.
authorDerk-Jan Hartman <hartman@users.mediawiki.org>
Sun, 2 Oct 2011 11:08:12 +0000 (11:08 +0000)
committerDerk-Jan Hartman <hartman@users.mediawiki.org>
Sun, 2 Oct 2011 11:08:12 +0000 (11:08 +0000)
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
resources/jquery/images/sort_both.gif [new file with mode: 0644]
resources/jquery/images/sort_down.gif [new file with mode: 0644]
resources/jquery/images/sort_none.gif [new file with mode: 0644]
resources/jquery/images/sort_up.gif [new file with mode: 0644]
resources/jquery/jquery.tablesorter.js
skins/common/images/sort_both.gif [deleted file]
skins/common/images/sort_down.gif [deleted file]
skins/common/images/sort_none.gif [deleted file]
skins/common/images/sort_up.gif [deleted file]

index 062f256..f5ad221 100644 (file)
@@ -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/resources/jquery/images/sort_both.gif b/resources/jquery/images/sort_both.gif
new file mode 100644 (file)
index 0000000..50ad15a
Binary files /dev/null and b/resources/jquery/images/sort_both.gif differ
diff --git a/resources/jquery/images/sort_down.gif b/resources/jquery/images/sort_down.gif
new file mode 100644 (file)
index 0000000..ec4f41b
Binary files /dev/null and b/resources/jquery/images/sort_down.gif differ
diff --git a/resources/jquery/images/sort_none.gif b/resources/jquery/images/sort_none.gif
new file mode 100644 (file)
index 0000000..edd07e5
Binary files /dev/null and b/resources/jquery/images/sort_none.gif differ
diff --git a/resources/jquery/images/sort_up.gif b/resources/jquery/images/sort_up.gif
new file mode 100644 (file)
index 0000000..8018918
Binary files /dev/null and b/resources/jquery/images/sort_up.gif differ
index 8085093..0030b4c 100644 (file)
                                                        return;
                                                }
                                        }
+                                       $table.addClass( "jquery-tablesorter" );
 
                                        // New config object.
                                        table.config = {};
diff --git a/skins/common/images/sort_both.gif b/skins/common/images/sort_both.gif
deleted file mode 100644 (file)
index 50ad15a..0000000
Binary files a/skins/common/images/sort_both.gif and /dev/null differ
diff --git a/skins/common/images/sort_down.gif b/skins/common/images/sort_down.gif
deleted file mode 100644 (file)
index ec4f41b..0000000
Binary files a/skins/common/images/sort_down.gif and /dev/null differ
diff --git a/skins/common/images/sort_none.gif b/skins/common/images/sort_none.gif
deleted file mode 100644 (file)
index edd07e5..0000000
Binary files a/skins/common/images/sort_none.gif and /dev/null differ
diff --git a/skins/common/images/sort_up.gif b/skins/common/images/sort_up.gif
deleted file mode 100644 (file)
index 8018918..0000000
Binary files a/skins/common/images/sort_up.gif and /dev/null differ