[Pkg-javascript-commits] [jquery-goodies] 02/03: Drop libjs-jquery-tablesorter which is now build by jquery-tablesorter
Paul Mathijs Gevers
elbrus at moszumanska.debian.org
Fri Jul 7 18:49:20 UTC 2017
This is an automated email from the git hooks/post-receive script.
elbrus pushed a commit to branch master
in repository jquery-goodies.
commit 6402817cc59d163629b34d0c217c9929fb8d891b
Author: Paul Gevers <elbrus at debian.org>
Date: Fri Jul 7 20:32:57 2017 +0200
Drop libjs-jquery-tablesorter which is now build by jquery-tablesorter
---
debian/control | 20 -
debian/copyright | 6 -
debian/libjs-jquery-tablesorter.README.Debian | 21 -
debian/libjs-jquery-tablesorter.docs | 1 -
debian/libjs-jquery-tablesorter.examples | 1 -
debian/libjs-jquery-tablesorter.install | 3 -
debian/patches/privacy_breach_donation | 30 -
debian/patches/privacy_breach_google_adsense.diff | 332 -------
debian/patches/series | 2 -
debian/rules | 4 -
.../addons/pager/jquery.tablesorter.pager.css | 25 -
.../addons/pager/jquery.tablesorter.pager.js | 184 ----
tablesorter/changelog | 41 -
tablesorter/docs/assets/ajax-content.html | 43 -
tablesorter/docs/css/jq.css | 29 -
tablesorter/docs/example-ajax.html | 119 ---
tablesorter/docs/example-empty-table.html | 75 --
tablesorter/docs/example-extending-defaults.html | 109 ---
tablesorter/docs/example-meta-headers.html | 108 --
tablesorter/docs/example-meta-parsers.html | 105 --
tablesorter/docs/example-meta-sort-list.html | 107 --
tablesorter/docs/example-option-debug.html | 116 ---
tablesorter/docs/example-option-digits.html | 106 --
tablesorter/docs/example-option-sort-force.html | 107 --
tablesorter/docs/example-option-sort-key.html | 108 --
tablesorter/docs/example-option-sort-list.html | 108 --
tablesorter/docs/example-option-sort-order.html | 108 --
.../docs/example-option-text-extraction.html | 85 --
tablesorter/docs/example-options-headers.html | 118 ---
tablesorter/docs/example-pager.html | 329 -------
tablesorter/docs/example-parsers.html | 112 ---
tablesorter/docs/example-trigger-sort.html | 113 ---
tablesorter/docs/example-triggers.html | 336 -------
tablesorter/docs/example-update-cell.html | 118 ---
tablesorter/docs/example-widgets.html | 383 --------
tablesorter/docs/img/external.png | Bin 165 -> 0 bytes
tablesorter/docs/index.html | 576 -----------
tablesorter/jquery.tablesorter.js | 1031 --------------------
tablesorter/themes/blue/asc.gif | Bin 54 -> 0 bytes
tablesorter/themes/blue/bg.gif | Bin 64 -> 0 bytes
tablesorter/themes/blue/desc.gif | Bin 54 -> 0 bytes
tablesorter/themes/blue/style.css | 39 -
tablesorter/themes/green/asc.png | Bin 2665 -> 0 bytes
tablesorter/themes/green/bg.png | Bin 2655 -> 0 bytes
tablesorter/themes/green/desc.png | Bin 2662 -> 0 bytes
tablesorter/themes/green/style.css | 39 -
46 files changed, 5297 deletions(-)
diff --git a/debian/control b/debian/control
index 50df497..3572af6 100644
--- a/debian/control
+++ b/debian/control
@@ -212,26 +212,6 @@ Description: jQuery plugin for parsing metadata from elements
into the elements matched by expr, then redefine the metadata type and run
another $(expr) for other elements.
-Package: libjs-jquery-tablesorter
-Architecture: all
-Depends: ${misc:Depends}, libjs-jquery (>= 1.2.3), libjs-jquery-metadata
-Recommends: javascript-common
-Homepage: http://tablesorter.com
-Description: Flexible client-side table sorting
- Tablesorter is a jQuery plugin for turning a standard HTML table
- with THEAD and TBODY tags into a sortable table without page refreshes.
- tablesorter can successfully parse and sort many types of data including
- linked data in a cell. It has many useful features including:
- .
- * Multi-column sorting
- * Parsers for sorting text, URIs, integers, currency, floats, IP addresses,
- dates (ISO, long and short formats), time. Add your own easily
- * Support secondary "hidden" sorting (e.g., maintain alphabetical sort when
- sorting on other criteria)
- * Extensibility via widget system
- * Cross-browser: IE 6.0+, FF 2+, Safari 2.0+, Opera 9.0+
- * Small code size
-
Package: libjs-jquery-treetable
Architecture: all
Depends: ${misc:Depends}, libjs-jquery
diff --git a/debian/copyright b/debian/copyright
index 95a18b6..143ed77 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -75,12 +75,6 @@ Files: metadata/*
Copyright: (c) 2006 John Resig, Yehuda Katz, J�örn Zaefferer, Paul McLanahan
License: MIT or GPL
-Files: tablesorter/*
-Copyright:
- (c) 2007 Christian Bach <christian at tablesorter.com>
- (c) 2008 Brian Ghidinelli <brian at vfive.com>
-License: MIT or GPL
-
Files: treetable/*
Copyright: (c) 2010, Ludo van den Boom
License: MIT or GPL-2
diff --git a/debian/libjs-jquery-tablesorter.README.Debian b/debian/libjs-jquery-tablesorter.README.Debian
deleted file mode 100644
index 94e2a79..0000000
--- a/debian/libjs-jquery-tablesorter.README.Debian
+++ /dev/null
@@ -1,21 +0,0 @@
-libjs-jquery-tablesorter for Debian
------------------------------------
-
-In order to make use of tablesorter in your html, include the following
-lines in your html header:
-
- <link type="text/css"
- href="/javascript/jquery-tablesorter/themes/blue/style.css"
- rel="stylesheet" />
-
- <script language="javascript" type="text/javascript"
- src="/javascript/jquery/jquery.js"></script>
-
- <script language="javascript" type="text/javascript"
- src="/javascript/jquery-metadata/jquery.metadata.js"></script>
-
- <script language="javascript" type="text/javascript"
- src="/javascript/jquery-tablesorter/jquery.tablesorter.js"></script>
-
-
- -- Marcelo Jorge Vieira <metal at debian.org> Fri, 15 Jul 2011 21:36:10 -0300
diff --git a/debian/libjs-jquery-tablesorter.docs b/debian/libjs-jquery-tablesorter.docs
deleted file mode 100644
index fbe7562..0000000
--- a/debian/libjs-jquery-tablesorter.docs
+++ /dev/null
@@ -1 +0,0 @@
-tablesorter/changelog
diff --git a/debian/libjs-jquery-tablesorter.examples b/debian/libjs-jquery-tablesorter.examples
deleted file mode 100644
index ad10ea2..0000000
--- a/debian/libjs-jquery-tablesorter.examples
+++ /dev/null
@@ -1 +0,0 @@
-tablesorter/docs/*
diff --git a/debian/libjs-jquery-tablesorter.install b/debian/libjs-jquery-tablesorter.install
deleted file mode 100644
index 8b68bf2..0000000
--- a/debian/libjs-jquery-tablesorter.install
+++ /dev/null
@@ -1,3 +0,0 @@
-tablesorter/addons /usr/share/javascript/jquery-tablesorter/
-tablesorter/*.js /usr/share/javascript/jquery-tablesorter/
-tablesorter/themes /usr/share/javascript/jquery-tablesorter/
diff --git a/debian/patches/privacy_breach_donation b/debian/patches/privacy_breach_donation
deleted file mode 100644
index d17661c..0000000
--- a/debian/patches/privacy_breach_donation
+++ /dev/null
@@ -1,30 +0,0 @@
-Index: jquery-goodies/tablesorter/docs/index.html
-===================================================================
---- jquery-goodies.orig/tablesorter/docs/index.html
-+++ jquery-goodies/tablesorter/docs/index.html
-@@ -49,25 +49,6 @@
-
- <p> </p>
-
--
--
-- <!--
-- <p class="tip">
-- <em>Help!</em> keep tablesorter.com up and running. If you like tablesorter, have a couple of bucks over or just feel like it. Please donate.</p>
-- </p>
--
-- <form name="_xclick" action="https://www.paypal.com/cgi-bin/webscr" method="post">
-- <input type="hidden" name="cmd" value="_xclick">
-- <input type="hidden" name="business" value="christian.bach at polyester.se">
-- <input type="hidden" name="item_name" value="Tablesorter donation">
-- <input type="hidden" name="currency_code" value="USD">
-- <input type="hidden" name="amount" value="10.00">
-- <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
-- </form>
-- -->
--
--
--
- <a name="Contents"></a>
- <h1>Contents</h1>
- <ol>
diff --git a/debian/patches/privacy_breach_google_adsense.diff b/debian/patches/privacy_breach_google_adsense.diff
deleted file mode 100644
index 697c395..0000000
--- a/debian/patches/privacy_breach_google_adsense.diff
+++ /dev/null
@@ -1,332 +0,0 @@
-Index: jquery-goodies/tablesorter/docs/example-ajax.html
-===================================================================
---- jquery-goodies.orig/tablesorter/docs/example-ajax.html
-+++ jquery-goodies/tablesorter/docs/example-ajax.html
-@@ -110,10 +110,5 @@
- <pre class="html"></pre>
- </div>
- </div>
--<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
--<script type="text/javascript">
--_uacct = "UA-2189649-2";
--urchinTracker();
--</script>
- </body>
- </html>
-Index: jquery-goodies/tablesorter/docs/example-empty-table.html
-===================================================================
---- jquery-goodies.orig/tablesorter/docs/example-empty-table.html
-+++ jquery-goodies/tablesorter/docs/example-empty-table.html
-@@ -66,10 +66,5 @@
- <pre class="html"></pre>
- </div>
- </div>
--<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
--<script type="text/javascript">
--_uacct = "UA-2189649-2";
--urchinTracker();
--</script>
- </body>
- </html>
-Index: jquery-goodies/tablesorter/docs/example-extending-defaults.html
-===================================================================
---- jquery-goodies.orig/tablesorter/docs/example-extending-defaults.html
-+++ jquery-goodies/tablesorter/docs/example-extending-defaults.html
-@@ -99,11 +99,6 @@
- <pre class="html"></pre>
- </div>
- </div>
--<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
--<script type="text/javascript">
--_uacct = "UA-2189649-2";
--urchinTracker();
--</script>
- </body>
- </html>
-
-Index: jquery-goodies/tablesorter/docs/example-meta-headers.html
-===================================================================
---- jquery-goodies.orig/tablesorter/docs/example-meta-headers.html
-+++ jquery-goodies/tablesorter/docs/example-meta-headers.html
-@@ -98,11 +98,6 @@
- <pre class="html"></pre>
- </div>
- </div>
--<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
--<script type="text/javascript">
--_uacct = "UA-2189649-2";
--urchinTracker();
--</script>
- </body>
- </html>
-
-Index: jquery-goodies/tablesorter/docs/example-meta-parsers.html
-===================================================================
---- jquery-goodies.orig/tablesorter/docs/example-meta-parsers.html
-+++ jquery-goodies/tablesorter/docs/example-meta-parsers.html
-@@ -95,11 +95,6 @@
- <pre class="html"></pre>
- </div>
- </div>
--<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
--<script type="text/javascript">
--_uacct = "UA-2189649-2";
--urchinTracker();
--</script>
- </body>
- </html>
-
-Index: jquery-goodies/tablesorter/docs/example-meta-sort-list.html
-===================================================================
---- jquery-goodies.orig/tablesorter/docs/example-meta-sort-list.html
-+++ jquery-goodies/tablesorter/docs/example-meta-sort-list.html
-@@ -97,11 +97,6 @@
- <pre class="html"></pre>
- </div>
- </div>
--<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
--<script type="text/javascript">
--_uacct = "UA-2189649-2";
--urchinTracker();
--</script>
- </body>
- </html>
-
-Index: jquery-goodies/tablesorter/docs/example-option-debug.html
-===================================================================
---- jquery-goodies.orig/tablesorter/docs/example-option-debug.html
-+++ jquery-goodies/tablesorter/docs/example-option-debug.html
-@@ -106,11 +106,6 @@
- <pre class="html"></pre>
- </div>
- </div>
--<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
--<script type="text/javascript">
--_uacct = "UA-2189649-2";
--urchinTracker();
--</script>
- </body>
- </html>
-
-Index: jquery-goodies/tablesorter/docs/example-option-digits.html
-===================================================================
---- jquery-goodies.orig/tablesorter/docs/example-option-digits.html
-+++ jquery-goodies/tablesorter/docs/example-option-digits.html
-@@ -96,11 +96,6 @@
- <pre class="html"></pre>
- </div>
- </div>
--<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
--<script type="text/javascript">
--_uacct = "UA-2189649-2";
--urchinTracker();
--</script>
- </body>
- </html>
-
-Index: jquery-goodies/tablesorter/docs/example-option-sort-force.html
-===================================================================
---- jquery-goodies.orig/tablesorter/docs/example-option-sort-force.html
-+++ jquery-goodies/tablesorter/docs/example-option-sort-force.html
-@@ -97,11 +97,6 @@
- <pre class="html"></pre>
- </div>
- </div>
--<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
--<script type="text/javascript">
--_uacct = "UA-2189649-2";
--urchinTracker();
--</script>
- </body>
- </html>
-
-Index: jquery-goodies/tablesorter/docs/example-option-sort-key.html
-===================================================================
---- jquery-goodies.orig/tablesorter/docs/example-option-sort-key.html
-+++ jquery-goodies/tablesorter/docs/example-option-sort-key.html
-@@ -98,11 +98,6 @@
- <pre class="html"></pre>
- </div>
- </div>
--<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
--<script type="text/javascript">
--_uacct = "UA-2189649-2";
--urchinTracker();
--</script>
- </body>
- </html>
-
-Index: jquery-goodies/tablesorter/docs/example-option-sort-list.html
-===================================================================
---- jquery-goodies.orig/tablesorter/docs/example-option-sort-list.html
-+++ jquery-goodies/tablesorter/docs/example-option-sort-list.html
-@@ -98,11 +98,6 @@
- <pre class="html"></pre>
- </div>
- </div>
--<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
--<script type="text/javascript">
--_uacct = "UA-2189649-2";
--urchinTracker();
--</script>
- </body>
- </html>
-
-Index: jquery-goodies/tablesorter/docs/example-option-sort-order.html
-===================================================================
---- jquery-goodies.orig/tablesorter/docs/example-option-sort-order.html
-+++ jquery-goodies/tablesorter/docs/example-option-sort-order.html
-@@ -98,11 +98,6 @@
- <pre class="html"></pre>
- </div>
- </div>
--<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
--<script type="text/javascript">
--_uacct = "UA-2189649-2";
--urchinTracker();
--</script>
- </body>
- </html>
-
-Index: jquery-goodies/tablesorter/docs/example-option-text-extraction.html
-===================================================================
---- jquery-goodies.orig/tablesorter/docs/example-option-text-extraction.html
-+++ jquery-goodies/tablesorter/docs/example-option-text-extraction.html
-@@ -75,11 +75,6 @@
- <pre class="html"></pre>
- </div>
- </div>
--<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
--<script type="text/javascript">
--_uacct = "UA-2189649-2";
--urchinTracker();
--</script>
- </body>
- </html>
-
-Index: jquery-goodies/tablesorter/docs/example-options-headers.html
-===================================================================
---- jquery-goodies.orig/tablesorter/docs/example-options-headers.html
-+++ jquery-goodies/tablesorter/docs/example-options-headers.html
-@@ -108,11 +108,6 @@
- <pre class="html"></pre>
- </div>
- </div>
--<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
--<script type="text/javascript">
--_uacct = "UA-2189649-2";
--urchinTracker();
--</script>
- </body>
- </html>
-
-Index: jquery-goodies/tablesorter/docs/example-pager.html
-===================================================================
---- jquery-goodies.orig/tablesorter/docs/example-pager.html
-+++ jquery-goodies/tablesorter/docs/example-pager.html
-@@ -319,11 +319,6 @@ $(document).ready(function() {
- </div>
-
- </div>
--<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
--<script type="text/javascript">
--_uacct = "UA-2189649-2";
--urchinTracker();
--</script>
- </body>
- </html>
-
-Index: jquery-goodies/tablesorter/docs/example-parsers.html
-===================================================================
---- jquery-goodies.orig/tablesorter/docs/example-parsers.html
-+++ jquery-goodies/tablesorter/docs/example-parsers.html
-@@ -102,11 +102,6 @@
- <pre class="html"></pre>
- </div>
- </div>
--<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
--<script type="text/javascript">
--_uacct = "UA-2189649-2";
--urchinTracker();
--</script>
- </body>
- </html>
-
-Index: jquery-goodies/tablesorter/docs/example-trigger-sort.html
-===================================================================
---- jquery-goodies.orig/tablesorter/docs/example-trigger-sort.html
-+++ jquery-goodies/tablesorter/docs/example-trigger-sort.html
-@@ -104,10 +104,5 @@
- <pre class="html"></pre>
- </div>
- </div>
--<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
--<script type="text/javascript">
--_uacct = "UA-2189649-2";
--urchinTracker();
--</script>
- </body>
- </html>
-Index: jquery-goodies/tablesorter/docs/example-triggers.html
-===================================================================
---- jquery-goodies.orig/tablesorter/docs/example-triggers.html
-+++ jquery-goodies/tablesorter/docs/example-triggers.html
-@@ -326,11 +326,6 @@
- <pre class="html"></pre>
- </div>
- </div>
--<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
--<script type="text/javascript">
--_uacct = "UA-2189649-2";
--urchinTracker();
--</script>
- </body>
- </html>
-
-Index: jquery-goodies/tablesorter/docs/example-update-cell.html
-===================================================================
---- jquery-goodies.orig/tablesorter/docs/example-update-cell.html
-+++ jquery-goodies/tablesorter/docs/example-update-cell.html
-@@ -109,10 +109,5 @@
- <pre class="html"></pre>
- </div>
- </div>
--<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
--<script type="text/javascript">
--_uacct = "UA-2189649-2";
--urchinTracker();
--</script>
- </body>
- </html>
-Index: jquery-goodies/tablesorter/docs/example-widgets.html
-===================================================================
---- jquery-goodies.orig/tablesorter/docs/example-widgets.html
-+++ jquery-goodies/tablesorter/docs/example-widgets.html
-@@ -373,11 +373,6 @@ $("table").tablesorter({
- </tbody>
- </table>
- </div>
--<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
--<script type="text/javascript">
--_uacct = "UA-2189649-2";
--urchinTracker();
--</script>
- </body>
- </html>
-
-Index: jquery-goodies/tablesorter/docs/index.html
-===================================================================
---- jquery-goodies.orig/tablesorter/docs/index.html
-+++ jquery-goodies/tablesorter/docs/index.html
-@@ -566,11 +566,6 @@ th.headerSortDown {
- </p>
- </div>
-
--<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
--<script type="text/javascript">
--_uacct = "UA-2189649-2";
--urchinTracker();
--</script>
- </body>
- </html>
-
diff --git a/debian/patches/series b/debian/patches/series
index c4ca6c9..456122a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,5 +1,3 @@
-privacy_breach_donation
-privacy_breach_google_adsense.diff
fancybox_fix_for_ie6.diff
privacy_breach_uses_embedded_file.diff
fancybox_browser_is_undefined.patch
diff --git a/debian/rules b/debian/rules
index 6bbb3c5..3476371 100755
--- a/debian/rules
+++ b/debian/rules
@@ -19,8 +19,6 @@ override_dh_auto_build:
uglifyjs -o fancybox/jquery.fancybox.min.js fancybox/jquery.fancybox.js
uglifyjs -o cookie/jquery.cookie.min.js cookie/jquery.cookie.js
uglifyjs -o metadata/jquery.metadata.min.js metadata/jquery.metadata.js
- uglifyjs -o tablesorter/jquery.tablesorter.min.js tablesorter/jquery.tablesorter.js
- uglifyjs -o tablesorter/addons/pager/jquery.tablesorter.pager.min.js tablesorter/addons/pager/jquery.tablesorter.pager.js
uglifyjs -o treetable/src/jquery.treeTable.min.js treetable/src/jquery.treeTable.js
uglifyjs -o livequery/jquery.livequery.min.js livequery/jquery.livequery.js
uglifyjs -o countdown/jquery.countdown.min.js countdown/jquery.countdown.js
@@ -54,8 +52,6 @@ override_dh_auto_clean:
rm -f fancybox/jquery.fancybox.min.js
rm -f cookie/jquery.cookie.min.js
rm -f metadata/jquery.metadata.min.js
- rm -f tablesorter/jquery.tablesorter.min.js
- rm -f tablesorter/addons/pager/jquery.tablesorter.pager.min.js
rm -f treetable/src/jquery.treeTable.min.js
rm -f livequery/jquery.livequery.min.js
rm -f countdown/jquery.countdown.min.js
diff --git a/tablesorter/addons/pager/jquery.tablesorter.pager.css b/tablesorter/addons/pager/jquery.tablesorter.pager.css
deleted file mode 100644
index 8c8e9fc..0000000
--- a/tablesorter/addons/pager/jquery.tablesorter.pager.css
+++ /dev/null
@@ -1,25 +0,0 @@
-div.tablesorterPager {
- padding: 10px 0 10px 0;
- background-color: #D6D2C2;
- text-align: center;
-}
-div.tablesorterPager span {
- padding: 0 5px 0 5px;
-}
-div.tablesorterPager input.prev {
- width: auto;
- margin-right: 10px;
-}
-div.tablesorterPager input.next {
- width: auto;
- margin-left: 10px;
-}
-div.tablesorterPager input {
- font-size: 8px;
- width: 50px;
- border: 1px solid #330000;
- text-align: center;
-}
-
-
-
\ No newline at end of file
diff --git a/tablesorter/addons/pager/jquery.tablesorter.pager.js b/tablesorter/addons/pager/jquery.tablesorter.pager.js
deleted file mode 100644
index cce6ea2..0000000
--- a/tablesorter/addons/pager/jquery.tablesorter.pager.js
+++ /dev/null
@@ -1,184 +0,0 @@
-(function($) {
- $.extend({
- tablesorterPager: new function() {
-
- function updatePageDisplay(c) {
- var s = $(c.cssPageDisplay,c.container).val((c.page+1) + c.seperator + c.totalPages);
- }
-
- function setPageSize(table,size) {
- var c = table.config;
- c.size = size;
- c.totalPages = Math.ceil(c.totalRows / c.size);
- c.pagerPositionSet = false;
- moveToPage(table);
- fixPosition(table);
- }
-
- function fixPosition(table) {
- var c = table.config;
- if(!c.pagerPositionSet && c.positionFixed) {
- var c = table.config, o = $(table);
- if(o.offset) {
- c.container.css({
- top: o.offset().top + o.height() + 'px',
- position: 'absolute'
- });
- }
- c.pagerPositionSet = true;
- }
- }
-
- function moveToFirstPage(table) {
- var c = table.config;
- c.page = 0;
- moveToPage(table);
- }
-
- function moveToLastPage(table) {
- var c = table.config;
- c.page = (c.totalPages-1);
- moveToPage(table);
- }
-
- function moveToNextPage(table) {
- var c = table.config;
- c.page++;
- if(c.page >= (c.totalPages-1)) {
- c.page = (c.totalPages-1);
- }
- moveToPage(table);
- }
-
- function moveToPrevPage(table) {
- var c = table.config;
- c.page--;
- if(c.page <= 0) {
- c.page = 0;
- }
- moveToPage(table);
- }
-
-
- function moveToPage(table) {
- var c = table.config;
- if(c.page < 0 || c.page > (c.totalPages-1)) {
- c.page = 0;
- }
-
- renderTable(table,c.rowsCopy);
- }
-
- function renderTable(table,rows) {
-
- var c = table.config;
- var l = rows.length;
- var s = (c.page * c.size);
- var e = (s + c.size);
- if(e > rows.length ) {
- e = rows.length;
- }
-
-
- var tableBody = $(table.tBodies[0]);
-
- // clear the table body
-
- $.tablesorter.clearTableBody(table);
-
- for(var i = s; i < e; i++) {
-
- //tableBody.append(rows[i]);
-
- var o = rows[i];
- var l = o.length;
- for(var j=0; j < l; j++) {
-
- tableBody[0].appendChild(o[j]);
-
- }
- }
-
- fixPosition(table,tableBody);
-
- $(table).trigger("applyWidgets");
-
- if( c.page >= c.totalPages ) {
- moveToLastPage(table);
- }
-
- updatePageDisplay(c);
- }
-
- this.appender = function(table,rows) {
-
- var c = table.config;
-
- c.rowsCopy = rows;
- c.totalRows = rows.length;
- c.totalPages = Math.ceil(c.totalRows / c.size);
-
- renderTable(table,rows);
- };
-
- this.defaults = {
- size: 10,
- offset: 0,
- page: 0,
- totalRows: 0,
- totalPages: 0,
- container: null,
- cssNext: '.next',
- cssPrev: '.prev',
- cssFirst: '.first',
- cssLast: '.last',
- cssPageDisplay: '.pagedisplay',
- cssPageSize: '.pagesize',
- seperator: "/",
- positionFixed: true,
- appender: this.appender
- };
-
- this.construct = function(settings) {
-
- return this.each(function() {
-
- config = $.extend(this.config, $.tablesorterPager.defaults, settings);
-
- var table = this, pager = config.container;
-
- $(this).trigger("appendCache");
-
- config.size = parseInt($(".pagesize",pager).val());
-
- $(config.cssFirst,pager).click(function() {
- moveToFirstPage(table);
- return false;
- });
- $(config.cssNext,pager).click(function() {
- moveToNextPage(table);
- return false;
- });
- $(config.cssPrev,pager).click(function() {
- moveToPrevPage(table);
- return false;
- });
- $(config.cssLast,pager).click(function() {
- moveToLastPage(table);
- return false;
- });
- $(config.cssPageSize,pager).change(function() {
- setPageSize(table,parseInt($(this).val()));
- return false;
- });
- });
- };
-
- }
- });
- // extend plugin scope
- $.fn.extend({
- tablesorterPager: $.tablesorterPager.construct
- });
-
-})(jQuery);
\ No newline at end of file
diff --git a/tablesorter/changelog b/tablesorter/changelog
deleted file mode 100644
index f6a525f..0000000
--- a/tablesorter/changelog
+++ /dev/null
@@ -1,41 +0,0 @@
-tablesorter changelog
-======================
-http://tablesorter.com
-
-Changes in version 2.0.3 (2008-03-17)
--------------------------------------
-
-Bug fixes
-* Missing semicolon, broke the minified version
-
-
-Changes in version 2.0.2 (2008-03-14)
--------------------------------------
-
-General
-* Added support for the new metadata plugin
-* Added support for jQuery 1.2.3
-* Added support for decimal numbers and negative and positive digits
-* Updated documenation and website with new examples
-* Removed packed version.
-
-Bug fixes
-* Sort force (Thanks to David Lynch)
-
-
-Changes in version 2.0.1 (2007-09-17)
--------------------------------------
-
-General
-* Removed the need for Dimensions plugin when using the pagnation plugin thanks to offset being included in the jQuery 1.2 core.
-* Added support for jQuery 1.2
-* Added new Minified version of tablesorter
-* Updated documenation and website with new examples
-
-Bug fixes
-* If row values are identical the original order is kept (Thanks to David hull)
-* If thead includes a table $('tbody:first', table) breaks (Thanks to David Hull)
-
-Speed improvements:
-* appendToTable, setting innerHTML to "" before appending new content to table body.
-* zebra widget. (Thanks to James Dempster)
\ No newline at end of file
diff --git a/tablesorter/docs/assets/ajax-content.html b/tablesorter/docs/assets/ajax-content.html
deleted file mode 100644
index 0d10cfb..0000000
--- a/tablesorter/docs/assets/ajax-content.html
+++ /dev/null
@@ -1,43 +0,0 @@
- <tr>
- <td>Peter</td>
- <td>Parker</td>
- <td>28</td>
- <td>$9.99</td>
- <td>20%</td>
-
- <td>Jul 6, 2006 8:14 AM</td>
- </tr>
- <tr>
- <td>John</td>
- <td>Hood</td>
- <td>33</td>
- <td>$19.99</td>
- <td>25%</td>
-
- <td>Dec 10, 2002 5:14 AM</td>
- </tr>
- <tr>
- <td>Clark</td>
- <td>Kent</td>
- <td>18</td>
- <td>$15.89</td>
- <td>44%</td>
- <td>Jan 12, 2003 11:14 AM</td>
- </tr>
- <tr>
- <td>Bruce</td>
- <td>Almighty</td>
- <td>45</td>
- <td>$153.19</td>
- <td>44%</td>
-
- <td>Jan 18, 2001 9:12 AM</td>
- </tr>
- <tr>
- <td>Bruce</td>
- <td>Evans</td>
- <td>22</td>
- <td>$13.19</td>
- <td>11%</td>
- <td>Jan 18, 2007 9:12 AM</td>
- </tr>
\ No newline at end of file
diff --git a/tablesorter/docs/css/jq.css b/tablesorter/docs/css/jq.css
deleted file mode 100644
index 389ee77..0000000
--- a/tablesorter/docs/css/jq.css
+++ /dev/null
@@ -1,29 +0,0 @@
-body,div,h1{font-family:'trebuchet ms', verdana, arial;margin:0;padding:0;}
-body{background-color:#fff;color:#333;font-size:small;margin:0;padding:0;}
-h1{font-size:large;font-weight:400;margin:0;}
-h2{color:#333;font-size:small;font-weight:400;margin:0;}
-pre{background-color:#eee;border:1px solid #ddd;border-left-width:5px;color:#333;font-size:small;overflow-x:auto;padding:15px;}
-pre.normal{background-color:transparent;border:none;border-left-width:0;overflow-x:auto;}
-#logo{background:url(images/jq.png);display:block;float:right;height:31px;margin-right:10px;margin-top:10px;width:110px;}
-#main{margin:0 20px 20px;padding:0 15px 15px 0;}
-#content{padding:20px;}
-#busy{background-color:#e95555;border:1px ridge #ccc;color:#eee;display:none;padding:3px;position:absolute;right:7px;top:7px;}
-hr{height:1px;}
-code{font-size:108%;font-style:normal;padding:0;}
-ul{color:#333;list-style:square;}
-#banner{margin:20px;padding-bottom:10px;text-align:left;}
-#banner *{color:#232121;font-family:Georgia, Palatino, Times New Roman;font-size:30px;font-style:normal;font-weight:400;margin:0;padding:0;}
-#banner h1{display:block;float:left;}
-#banner h1 em{color:#6cf;}
-#banner h2{float:right;font-size:26px;margin:10px 10px -10px -10px;}
-#banner h3{clear:both;display:block;font-size:12px;margin-top:-20px;}
-#banner a{border-top:1px solid #888;display:block;font-size:14px;margin:5px 0 0;padding:10px 0 0;text-align:right;width:auto;}
-a.external{background-image:url(../img/external.png);background-position:center right;background-repeat:no-repeat;padding-right:12px;}
-form{font-size:10pt;margin-bottom:20px;width:auto;}
-form fieldset{padding:10px;text-align:left;width:140px;}
-div#main h1{border-bottom:1px solid #CDCDCD;display:block;margin-top:20px;padding:10px 0 2px;}
-table#tablesorter-demo {margin: 10px 0 0 0;}
-table#options *{font-size:small;}
-p.tip em {padding: 2px; background-color: #6cf; color: #FFF;}
-p.tip.update em {background-color: #FF0000;}
-div.digg {float: right;}
\ No newline at end of file
diff --git a/tablesorter/docs/example-ajax.html b/tablesorter/docs/example-ajax.html
deleted file mode 100644
index 254ac70..0000000
--- a/tablesorter/docs/example-ajax.html
+++ /dev/null
@@ -1,119 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us">
-<head>
- <title>jQuery plugin: Tablesorter 2.0 - Appending table data with ajax</title>
- <link rel="stylesheet" href="css/jq.css" type="text/css" media="print, projection, screen" />
- <link rel="stylesheet" href="../themes/blue/style.css" type="text/css" id="" media="print, projection, screen" />
- <script type="text/javascript" src="../jquery-latest.js"></script>
- <script type="text/javascript" src="../jquery.tablesorter.js"></script>
- <script type="text/javascript" src="js/chili/chili-1.8b.js"></script>
- <script type="text/javascript" src="js/docs.js"></script>
- <script type="text/javascript" src="js/examples.js"></script>
- <script type="text/javascript" id="js">
- $(document).ready(function() {
- $("table").tablesorter();
- $("#ajax-append").click(function() {
- $.get("assets/ajax-content.html", function(html) {
- // append the "ajax'd" data to the table body
- $("table tbody").append(html);
- // let the plugin know that we made a update
- $("table").trigger("update");
- // set sorting column and direction, this will sort on the first and third column
- var sorting = [[2,1],[0,0]];
- // sort on the first column
- $("table").trigger("sorton",[sorting]);
- });
- return false;
- });
-});
- </script>
-</head>
-<body>
-<div id="banner">
- <h1>table<em>sorter</em></h1>
- <h2>Appending table data with ajax</h2>
- <h3>Flexible client-side table sorting</h3>
- <a href="index.html">Back to documentation</a>
-</div>
-<div id="main">
- <h1>Demo</h1>
- <div id="demo">
- <table cellspacing="1" class="tablesorter">
- <thead>
- <tr>
- <th>First Name</th>
- <th>Last Name</th>
- <th>Age</th>
- <th>Total</th>
- <th>Discount</th>
- <th>Date</th>
-
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>Peter</td>
- <td>Parker</td>
- <td>28</td>
- <td>$9.99</td>
- <td>20%</td>
-
- <td>Jul 6, 2006 8:14 AM</td>
- </tr>
- <tr>
- <td>John</td>
- <td>Hood</td>
- <td>33</td>
- <td>$19.99</td>
- <td>25%</td>
-
- <td>Dec 10, 2002 5:14 AM</td>
- </tr>
- <tr>
- <td>Clark</td>
- <td>Kent</td>
- <td>18</td>
- <td>$15.89</td>
- <td>44%</td>
- <td>Jan 12, 2003 11:14 AM</td>
- </tr>
- <tr>
- <td>Bruce</td>
- <td>Almighty</td>
- <td>45</td>
- <td>$153.19</td>
- <td>44%</td>
-
- <td>Jan 18, 2001 9:12 AM</td>
- </tr>
- <tr>
- <td>Bruce</td>
- <td>Evans</td>
- <td>22</td>
- <td>$13.19</td>
- <td>11%</td>
- <td>Jan 18, 2007 9:12 AM</td>
- </tr>
- </tbody>
- </table>
- <a href="#" id="ajax-append">Append new table data</a>
- <br/>
- <br/>
- </div>
- <h1>Javascript</h1>
- <div id="javascript">
- <pre class="javascript"></pre>
- </div>
- <h1>HTML</h1>
- <div id="html">
- <pre class="html"></pre>
- </div>
-</div>
-<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
-<script type="text/javascript">
-_uacct = "UA-2189649-2";
-urchinTracker();
-</script>
-</body>
-</html>
diff --git a/tablesorter/docs/example-empty-table.html b/tablesorter/docs/example-empty-table.html
deleted file mode 100644
index 52531dc..0000000
--- a/tablesorter/docs/example-empty-table.html
+++ /dev/null
@@ -1,75 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us">
-<head>
- <title>jQuery plugin: Tablesorter 2.0 - Initializing tablesorter on a empty table</title>
- <link rel="stylesheet" href="css/jq.css" type="text/css" media="print, projection, screen" />
- <link rel="stylesheet" href="../themes/blue/style.css" type="text/css" id="" media="print, projection, screen" />
- <script type="text/javascript" src="../jquery-latest.js"></script>
- <script type="text/javascript" src="../jquery.tablesorter.js"></script>
- <script type="text/javascript" src="js/chili/chili-1.8b.js"></script>
- <script type="text/javascript" src="js/docs.js"></script>
- <script type="text/javascript" src="js/examples.js"></script>
- <script type="text/javascript" id="js">$(document).ready(function() {
- $("table").tablesorter();
- $("#append").click(function() {
- // add some html
- var html = "<tr><td>Peter</td><td>Parker</td><td>28</td><td>$9.99</td><td>20%</td><td>Jul 6, 2006 8:14 AM</td></tr>";
- html += "<tr><td>John</td><td>Hood</td><td>33</td><td>$19.99</td><td>25%</td><td>Dec 10, 2002 5:14 AM</td></tr><tr><td>Clark</td><td>Kent</td><td>18</td><td>$15.89</td><td>44%</td><td>Jan 12, 2003 11:14 AM</td></tr>";
- html += "<tr><td>Bruce</td><td>Almighty</td><td>45</td><td>$153.19</td><td>44%</td><td>Jan 18, 2001 9:12 AM</td></tr>";
- // append new html to table body
- $("table tbody").append(html);
- // let the plugin know that we made a update
- $("table").trigger("update");
- // set sorting column and direction, this will sort on the first and third column
- var sorting = [[2,1],[0,0]];
- // sort on the first column
- $("table").trigger("sorton",[sorting]);
- return false;
- });
-});</script>
-</head>
-<body>
-<div id="banner">
- <h1>table<em>sorter</em></h1>
- <h2>Initializing tablesorter on a empty table</h2>
- <h3>Flexible client-side table sorting</h3>
- <a href="index.html">Back to documentation</a>
-</div>
-<div id="main">
- <h1>Demo</h1>
- <div id="demo">
- <table cellspacing="1" class="tablesorter">
- <thead>
- <tr>
- <th>First Name</th>
- <th>Last Name</th>
- <th>Age</th>
- <th>Total</th>
- <th>Discount</th>
- <th>Date</th>
- </tr>
- </thead>
- <tbody>
- </tbody>
- </table>
- <a href="#" id="append">Append new table data</a>
- <br/>
- <br/>
- </div>
- <h1>Javascript</h1>
- <div id="javascript">
- <pre class="javascript"></pre>
- </div>
- <h1>HTML</h1>
- <div id="html">
- <pre class="html"></pre>
- </div>
-</div>
-<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
-<script type="text/javascript">
-_uacct = "UA-2189649-2";
-urchinTracker();
-</script>
-</body>
-</html>
diff --git a/tablesorter/docs/example-extending-defaults.html b/tablesorter/docs/example-extending-defaults.html
deleted file mode 100644
index 931e26a..0000000
--- a/tablesorter/docs/example-extending-defaults.html
+++ /dev/null
@@ -1,109 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us">
-<head>
- <title>jQuery plugin: Tablesorter 2.0 - Extending default options</title>
- <link rel="stylesheet" href="css/jq.css" type="text/css" media="print, projection, screen" />
- <link rel="stylesheet" href="../themes/blue/style.css" type="text/css" id="" media="print, projection, screen" />
- <script type="text/javascript" src="../jquery-latest.js"></script>
-
- <script type="text/javascript" src="../jquery.tablesorter.js"></script>
- <script type="text/javascript" src="../addons/pager/jquery.tablesorter.pager.js"></script>
- <script type="text/javascript" src="js/chili/chili-1.8b.js"></script>
- <script type="text/javascript" src="js/docs.js"></script>
- <script type="text/javascript" src="js/examples.js"></script>
-<script type="text/javascript" id="js">$(document).ready(function() {
- // extend the default setting to always include the zebra widget.
- $.tablesorter.defaults.widgets = ['zebra'];
- // extend the default setting to always sort on the first column
- $.tablesorter.defaults.sortList = [[0,0]];
- // call the tablesorter plugin
- $("table").tablesorter();
-}); </script>
-</head>
-<body>
-<div id="banner">
- <h1>table<em>sorter</em></h1>
- <h2>Extending default options</h2>
- <h3>Flexible client-side table sorting</h3>
- <a href="index.html">Back to documentation</a>
-</div>
-<div id="main">
- <h1>Demo</h1>
- <div id="demo">
- <table cellspacing="1" class="tablesorter">
- <thead>
- <tr>
- <th>First Name</th>
- <th>Last Name</th>
- <th>Age</th>
- <th>Total</th>
- <th>Discount</th>
- <th>Date</th>
-
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>Peter</td>
- <td>Parker</td>
- <td>28</td>
- <td>$9.99</td>
- <td>20%</td>
-
- <td>Jul 6, 2006 8:14 AM</td>
- </tr>
- <tr>
- <td>John</td>
- <td>Hood</td>
- <td>33</td>
- <td>$19.99</td>
- <td>25%</td>
-
- <td>Dec 10, 2002 5:14 AM</td>
- </tr>
- <tr>
- <td>Clark</td>
- <td>Kent</td>
- <td>18</td>
- <td>$15.89</td>
- <td>44%</td>
- <td>Jan 12, 2003 11:14 AM</td>
- </tr>
- <tr>
- <td>Bruce</td>
- <td>Almighty</td>
- <td>45</td>
- <td>$153.19</td>
- <td>44%</td>
-
- <td>Jan 18, 2001 9:12 AM</td>
- </tr>
- <tr>
- <td>Bruce</td>
- <td>Evans</td>
- <td>22</td>
- <td>$13.19</td>
- <td>11%</td>
- <td>Jan 18, 2007 9:12 AM</td>
- </tr>
- </tbody>
- </table>
- </div>
- <h1>Javascript</h1>
- <div id="javascript">
- <pre class="javascript"></pre>
- </div>
- <h1>HTML</h1>
- <div id="html">
- <pre class="html"></pre>
- </div>
-</div>
-<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
-<script type="text/javascript">
-_uacct = "UA-2189649-2";
-urchinTracker();
-</script>
-</body>
-</html>
-
diff --git a/tablesorter/docs/example-meta-headers.html b/tablesorter/docs/example-meta-headers.html
deleted file mode 100644
index 6340faa..0000000
--- a/tablesorter/docs/example-meta-headers.html
+++ /dev/null
@@ -1,108 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us">
-<head>
- <title>jQuery plugin: Tablesorter 2.0 - Disable headers using metadata</title>
- <link rel="stylesheet" href="css/jq.css" type="text/css" media="print, projection, screen" />
- <link rel="stylesheet" href="../themes/blue/style.css" type="text/css" id="" media="print, projection, screen" />
- <script type="text/javascript" src="../jquery-latest.js"></script>
-
- <script type="text/javascript" src="../jquery.metadata.js"></script>
- <script type="text/javascript" src="../jquery.tablesorter.js"></script>
- <script type="text/javascript" src="../addons/pager/jquery.tablesorter.pager.js"></script>
- <script type="text/javascript" src="js/chili/chili-1.8b.js"></script>
- <script type="text/javascript" src="js/docs.js"></script>
- <script type="text/javascript">
- window.tableFile="table-metadata-disable.html";
- </script>
- <script type="text/javascript" src="js/examples.js"></script>
-<script type="text/javascript" id="js">$(document).ready(function() {
- // call the tablesorter plugin, the magic happens in the markup
- $("table").tablesorter();
-}); </script>
-</head>
-<body>
-<div id="banner">
- <h1>table<em>sorter</em></h1>
- <h2>Disable headers using metadata</h2>
- <h3>Flexible client-side table sorting</h3>
- <a href="index.html">Back to documentation</a>
-</div>
-<div id="main">
- <h1>Demo</h1>
- <div id="demo">
- <table cellspacing="1" class="tablesorter">
- <thead>
- <tr>
- <th class="{sorter: false}">First Name</th>
- <th>Last Name</th>
- <th>Age</th>
- <th>Total</th>
- <th class="{sorter: false}">Discount</th>
- <th>Date</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>Peter</td>
- <td>Parker</td>
- <td>28</td>
- <td>$9.99</td>
- <td>20%</td>
-
- <td>Jul 6, 2006 8:14 AM</td>
- </tr>
- <tr>
- <td>John</td>
- <td>Hood</td>
- <td>33</td>
- <td>$19.99</td>
- <td>25%</td>
-
- <td>Dec 10, 2002 5:14 AM</td>
- </tr>
- <tr>
- <td>Clark</td>
- <td>Kent</td>
- <td>18</td>
- <td>$15.89</td>
- <td>44%</td>
- <td>Jan 12, 2003 11:14 AM</td>
- </tr>
- <tr>
- <td>Bruce</td>
- <td>Almighty</td>
- <td>45</td>
- <td>$153.19</td>
- <td>44%</td>
-
- <td>Jan 18, 2001 9:12 AM</td>
- </tr>
- <tr>
- <td>Bruce</td>
- <td>Evans</td>
- <td>22</td>
- <td>$13.19</td>
- <td>11%</td>
- <td>Jan 18, 2007 9:12 AM</td>
- </tr>
- </tbody>
- </table>
- </div>
- <h1>Javascript</h1>
- <div id="javascript">
- <pre class="javascript"></pre>
- </div>
- <h1>HTML</h1>
- <div id="html">
- <pre class="html"></pre>
- </div>
-</div>
-<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
-<script type="text/javascript">
-_uacct = "UA-2189649-2";
-urchinTracker();
-</script>
-</body>
-</html>
-
diff --git a/tablesorter/docs/example-meta-parsers.html b/tablesorter/docs/example-meta-parsers.html
deleted file mode 100644
index 33a938c..0000000
--- a/tablesorter/docs/example-meta-parsers.html
+++ /dev/null
@@ -1,105 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us">
-<head>
- <title>jQuery plugin: Tablesorter 2.0 - Setting column parser using metadata</title>
- <link rel="stylesheet" href="css/jq.css" type="text/css" media="print, projection, screen" />
- <link rel="stylesheet" href="../themes/blue/style.css" type="text/css" id="" media="print, projection, screen" />
- <script type="text/javascript" src="../jquery-latest.js"></script>
-
- <script type="text/javascript" src="../jquery.metadata.js"></script>
- <script type="text/javascript" src="../jquery.tablesorter.js"></script>
- <script type="text/javascript" src="../addons/pager/jquery.tablesorter.pager.js"></script>
- <script type="text/javascript" src="js/chili/chili-1.8b.js"></script>
- <script type="text/javascript" src="js/docs.js"></script>
- <script type="text/javascript" src="js/examples.js"></script>
-<script type="text/javascript" id="js">$(document).ready(function() {
- // call the tablesorter plugin, the magic happens in the markup
- $("table").tablesorter();
-}); </script>
-</head>
-<body>
-<div id="banner">
- <h1>table<em>sorter</em></h1>
- <h2>Setting column parser using metadata</h2>
- <h3>Flexible client-side table sorting</h3>
- <a href="index.html">Back to documentation</a>
-</div>
-<div id="main">
- <h1>Demo</h1>
- <div id="demo">
- <table cellspacing="1" class="tablesorter">
- <thead>
- <tr>
- <th class="{sorter: 'text'}">First Name</th>
- <th>Last Name</th>
- <th>Age</th>
- <th>Total</th>
- <th class="{sorter: 'procent'}">Discount</th>
- <th>Date</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>Peter</td>
- <td>Parker</td>
- <td>28</td>
- <td>$9.99</td>
- <td>20%</td>
-
- <td>Jul 6, 2006 8:14 AM</td>
- </tr>
- <tr>
- <td>John</td>
- <td>Hood</td>
- <td>33</td>
- <td>$19.99</td>
- <td>25%</td>
-
- <td>Dec 10, 2002 5:14 AM</td>
- </tr>
- <tr>
- <td>Clark</td>
- <td>Kent</td>
- <td>18</td>
- <td>$15.89</td>
- <td>44%</td>
- <td>Jan 12, 2003 11:14 AM</td>
- </tr>
- <tr>
- <td>Bruce</td>
- <td>Almighty</td>
- <td>45</td>
- <td>$153.19</td>
- <td>44%</td>
-
- <td>Jan 18, 2001 9:12 AM</td>
- </tr>
- <tr>
- <td>Bruce</td>
- <td>Evans</td>
- <td>22</td>
- <td>$13.19</td>
- <td>11%</td>
- <td>Jan 18, 2007 9:12 AM</td>
- </tr>
- </tbody>
- </table>
- </div>
- <h1>Javascript</h1>
- <div id="javascript">
- <pre class="javascript"></pre>
- </div>
- <h1>HTML</h1>
- <div id="html">
- <pre class="html"></pre>
- </div>
-</div>
-<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
-<script type="text/javascript">
-_uacct = "UA-2189649-2";
-urchinTracker();
-</script>
-</body>
-</html>
-
diff --git a/tablesorter/docs/example-meta-sort-list.html b/tablesorter/docs/example-meta-sort-list.html
deleted file mode 100644
index 99fdaeb..0000000
--- a/tablesorter/docs/example-meta-sort-list.html
+++ /dev/null
@@ -1,107 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us">
-<head>
- <title>jQuery plugin: Tablesorter 2.0 - Setting initial sorting order with metadata</title>
- <link rel="stylesheet" href="css/jq.css" type="text/css" media="print, projection, screen" />
- <link rel="stylesheet" href="../themes/blue/style.css" type="text/css" id="" media="print, projection, screen" />
- <script type="text/javascript" src="../jquery-latest.js"></script>
-
- <script type="text/javascript" src="../jquery.metadata.js"></script>
- <script type="text/javascript" src="../jquery.tablesorter.js"></script>
- <script type="text/javascript" src="../addons/pager/jquery.tablesorter.pager.js"></script>
- <script type="text/javascript" src="js/chili/chili-1.8b.js"></script>
- <script type="text/javascript" src="js/docs.js"></script>
- <script type="text/javascript" src="js/examples.js"></script>
-<script type="text/javascript" id="js">$(document).ready(function() {
- // call the tablesorter plugin, the magic happens in the markup
- $("table").tablesorter();
-}); </script>
-</head>
-<body>
-<div id="banner">
- <h1>table<em>sorter</em></h1>
- <h2>Setting initial sorting order with metadata</h2>
- <h3>Flexible client-side table sorting</h3>
- <a href="index.html">Back to documentation</a>
-</div>
-<div id="main">
- <h1>Demo</h1>
- <div id="demo">
- <!-- sortlist is appended to the table using the class attribute and is picked up by metadata plugin -->
- <table cellspacing="1" class="tablesorter {sortlist: [[0,0],[4,0]]}">
- <thead>
- <tr>
- <th>First Name</th>
- <th>Last Name</th>
- <th>Age</th>
- <th>Total</th>
- <th>Discount</th>
- <th>Date</th>
-
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>Peter</td>
- <td>Parker</td>
- <td>28</td>
- <td>$9.99</td>
- <td>20%</td>
-
- <td>Jul 6, 2006 8:14 AM</td>
- </tr>
- <tr>
- <td>John</td>
- <td>Hood</td>
- <td>33</td>
- <td>$19.99</td>
- <td>25%</td>
-
- <td>Dec 10, 2002 5:14 AM</td>
- </tr>
- <tr>
- <td>Clark</td>
- <td>Kent</td>
- <td>18</td>
- <td>$15.89</td>
- <td>44%</td>
- <td>Jan 12, 2003 11:14 AM</td>
- </tr>
- <tr>
- <td>Bruce</td>
- <td>Almighty</td>
- <td>45</td>
- <td>$153.19</td>
- <td>44%</td>
-
- <td>Jan 18, 2001 9:12 AM</td>
- </tr>
- <tr>
- <td>Bruce</td>
- <td>Evans</td>
- <td>22</td>
- <td>$13.19</td>
- <td>11%</td>
- <td>Jan 18, 2007 9:12 AM</td>
- </tr>
- </tbody>
- </table>
- </div>
- <h1>Javascript</h1>
- <div id="javascript">
- <pre class="javascript"></pre>
- </div>
- <h1>HTML</h1>
- <div id="html">
- <pre class="html"></pre>
- </div>
-</div>
-<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
-<script type="text/javascript">
-_uacct = "UA-2189649-2";
-urchinTracker();
-</script>
-</body>
-</html>
-
diff --git a/tablesorter/docs/example-option-debug.html b/tablesorter/docs/example-option-debug.html
deleted file mode 100644
index 8492b60..0000000
--- a/tablesorter/docs/example-option-debug.html
+++ /dev/null
@@ -1,116 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us">
-<head>
- <title>jQuery plugin: Tablesorter 2.0 - Enabling debug mode</title>
- <link rel="stylesheet" href="css/jq.css" type="text/css" media="print, projection, screen" />
- <link rel="stylesheet" href="../themes/blue/style.css" type="text/css" id="" media="print, projection, screen" />
- <script type="text/javascript" src="../jquery-latest.js"></script>
-
- <script type="text/javascript" src="../jquery.tablesorter.js"></script>
- <script type="text/javascript" src="../addons/pager/jquery.tablesorter.pager.js"></script>
- <script type="text/javascript" src="js/chili/chili-1.8b.js"></script>
- <script type="text/javascript" src="js/docs.js"></script>
- <script type="text/javascript" src="js/examples.js"></script>
-<script type="text/javascript" id="js">$(document).ready(function() {
- // call the tablesorter plugin
- $("table").tablesorter({
- // enable debug mode
- debug: true
- });
-}); </script>
-</head>
-<body>
-<div id="banner">
- <h1>table<em>sorter</em></h1>
- <h2>Enabling debug mode</h2>
- <h3>Flexible client-side table sorting</h3>
- <a href="index.html">Back to documentation</a>
-</div>
-<div id="main">
-
- <p class="tip">
- <em>NOTE!</em> If firebug is installed the debuging information will be displayed in the firebug console.
- </p>
-
- <h1>Demo</h1>
- <div id="demo">
-
- <table cellspacing="1" class="tablesorter">
- <thead>
- <tr>
- <th>First Name</th>
- <th>Last Name</th>
- <th>Age</th>
- <th>Total</th>
- <th>Discount</th>
- <th>Date</th>
-
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>Peter</td>
- <td>Parker</td>
- <td>28</td>
- <td>$9.99</td>
- <td>20%</td>
-
- <td>Jul 6, 2006 8:14 AM</td>
- </tr>
- <tr>
- <td>John</td>
- <td>Hood</td>
- <td>33</td>
- <td>$19.99</td>
- <td>25%</td>
-
- <td>Dec 10, 2002 5:14 AM</td>
- </tr>
- <tr>
- <td>Clark</td>
- <td>Kent</td>
- <td>18</td>
- <td>$15.89</td>
- <td>44%</td>
- <td>Jan 12, 2003 11:14 AM</td>
- </tr>
- <tr>
- <td>Bruce</td>
- <td>Almighty</td>
- <td>45</td>
- <td>$153.19</td>
- <td>44%</td>
-
- <td>Jan 18, 2001 9:12 AM</td>
- </tr>
- <tr>
- <td>Bruce</td>
- <td>Evans</td>
- <td>22</td>
- <td>$13.19</td>
- <td>11%</td>
- <td>Jan 18, 2007 9:12 AM</td>
- </tr>
- </tbody>
- </table>
-
- </div>
-
- <h1>Javascript</h1>
- <div id="javascript">
- <pre class="javascript"></pre>
- </div>
- <h1>HTML</h1>
- <div id="html">
- <pre class="html"></pre>
- </div>
-</div>
-<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
-<script type="text/javascript">
-_uacct = "UA-2189649-2";
-urchinTracker();
-</script>
-</body>
-</html>
-
diff --git a/tablesorter/docs/example-option-digits.html b/tablesorter/docs/example-option-digits.html
deleted file mode 100644
index 6db8fb2..0000000
--- a/tablesorter/docs/example-option-digits.html
+++ /dev/null
@@ -1,106 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us">
-<head>
- <title>jQuery plugin: Tablesorter 2.0 - Enabling debug mode</title>
- <link rel="stylesheet" href="css/jq.css" type="text/css" media="print, projection, screen" />
- <link rel="stylesheet" href="../themes/blue/style.css" type="text/css" id="" media="print, projection, screen" />
- <script type="text/javascript" src="../jquery-latest.js"></script>
-
- <script type="text/javascript" src="../jquery.tablesorter.js"></script>
- <script type="text/javascript" src="../addons/pager/jquery.tablesorter.pager.js"></script>
- <script type="text/javascript" src="js/chili/chili-1.8b.js"></script>
- <script type="text/javascript" src="js/docs.js"></script>
- <script type="text/javascript" src="js/examples.js"></script>
-<script type="text/javascript" id="js">$(document).ready(function() {
- // call the tablesorter plugin
- $("table").tablesorter();
-}); </script>
-</head>
-<body>
-<div id="banner">
- <h1>table<em>sorter</em></h1>
- <h2>Dealing with digits</h2>
- <h3>Flexible client-side table sorting</h3>
- <a href="index.html">Back to documentation</a>
-</div>
-<div id="main">
-
- <h1>Demo</h1>
- <div id="demo">
-
- <table cellspacing="1" class="tablesorter">
- <thead>
- <tr>
- <th>First Name</th>
- <th>Last Name</th>
- <th>Age</th>
- <th>Total</th>
- <th>Discount</th>
- <th>Diff</th>
-
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>Peter</td>
- <td>Parker</td>
- <td>28</td>
- <td>9.99</td>
- <td>20.3%</td>
- <td>+3.0</td>
- </tr>
- <tr>
- <td>John</td>
- <td>Hood</td>
- <td>33</td>
- <td>19.99</td>
- <td>25.1%</td>
- <td>-7</td>
- </tr>
- <tr>
- <td>Clark</td>
- <td>Kent</td>
- <td>18</td>
- <td>15.89</td>
- <td>44.2%</td>
- <td>-15</td>
- </tr>
- <tr>
- <td>Bruce</td>
- <td>Almighty</td>
- <td>45</td>
- <td>153.19</td>
- <td>44%</td>
- <td>+19</td>
- </tr>
- <tr>
- <td>Bruce</td>
- <td>Evans</td>
- <td>56</td>
- <td>153.19</td>
- <td>23%</td>
- <td>+9</td>
- </tr>
- </tbody>
- </table>
-
- </div>
-
- <h1>Javascript</h1>
- <div id="javascript">
- <pre class="javascript"></pre>
- </div>
- <h1>HTML</h1>
- <div id="html">
- <pre class="html"></pre>
- </div>
-</div>
-<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
-<script type="text/javascript">
-_uacct = "UA-2189649-2";
-urchinTracker();
-</script>
-</body>
-</html>
-
diff --git a/tablesorter/docs/example-option-sort-force.html b/tablesorter/docs/example-option-sort-force.html
deleted file mode 100644
index 6e8824c..0000000
--- a/tablesorter/docs/example-option-sort-force.html
+++ /dev/null
@@ -1,107 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us">
-<head>
- <title>jQuery plugin: Tablesorter 2.0 - Force a default sorting order</title>
- <link rel="stylesheet" href="css/jq.css" type="text/css" media="print, projection, screen" />
- <link rel="stylesheet" href="../themes/blue/style.css" type="text/css" id="" media="print, projection, screen" />
- <script type="text/javascript" src="../jquery-latest.js"></script>
-
- <script type="text/javascript" src="../jquery.tablesorter.js"></script>
- <script type="text/javascript" src="js/chili/chili-1.8b.js"></script>
- <script type="text/javascript" src="js/docs.js"></script>
- <script type="text/javascript" src="js/examples.js"></script>
-<script type="text/javascript" id="js">$(document).ready(function() {
- // call the tablesorter plugin
- $("table").tablesorter({
- // set forced sort on the fourth column and i decending order.
- sortForce: [[0,0]]
- });
-}); </script>
-</head>
-<body>
-<div id="banner">
- <h1>table<em>sorter</em></h1>
- <h2>Force a default sorting order</h2>
- <h3>Flexible client-side table sorting</h3>
- <a href="index.html">Back to documentation</a>
-</div>
-<div id="main">
- <h1>Demo</h1>
- <div id="demo">
- <table cellspacing="1" class="tablesorter">
- <thead>
- <tr>
- <th>First Name</th>
- <th>Last Name</th>
- <th>Age</th>
- <th>Total</th>
- <th>Discount</th>
- <th>Date</th>
-
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>Peter</td>
- <td>Parker</td>
- <td>28</td>
- <td>$9.99</td>
- <td>20%</td>
-
- <td>Jul 6, 2006 8:14 AM</td>
- </tr>
- <tr>
- <td>John</td>
- <td>Hood</td>
- <td>33</td>
- <td>$19.99</td>
- <td>25%</td>
-
- <td>Dec 10, 2002 5:14 AM</td>
- </tr>
- <tr>
- <td>Clark</td>
- <td>Kent</td>
- <td>18</td>
- <td>$15.89</td>
- <td>44%</td>
- <td>Jan 12, 2003 11:14 AM</td>
- </tr>
- <tr>
- <td>Bruce</td>
- <td>Almighty</td>
- <td>45</td>
- <td>$153.19</td>
- <td>44%</td>
-
- <td>Jan 18, 2001 9:12 AM</td>
- </tr>
- <tr>
- <td>Bruce</td>
- <td>Evans</td>
- <td>22</td>
- <td>$13.19</td>
- <td>11%</td>
- <td>Jan 18, 2007 9:12 AM</td>
- </tr>
- </tbody>
- </table>
- </div>
- <h1>Javascript</h1>
- <div id="javascript">
- <pre class="javascript"></pre>
- </div>
- <h1>HTML</h1>
- <div id="html">
- <pre class="html"></pre>
- </div>
-</div>
-<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
-<script type="text/javascript">
-_uacct = "UA-2189649-2";
-urchinTracker();
-</script>
-</body>
-</html>
-
diff --git a/tablesorter/docs/example-option-sort-key.html b/tablesorter/docs/example-option-sort-key.html
deleted file mode 100644
index ec8d48a..0000000
--- a/tablesorter/docs/example-option-sort-key.html
+++ /dev/null
@@ -1,108 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us">
-<head>
- <title>jQuery plugin: Tablesorter 2.0 - Change multi-column sorting key</title>
- <link rel="stylesheet" href="css/jq.css" type="text/css" media="print, projection, screen" />
- <link rel="stylesheet" href="../themes/blue/style.css" type="text/css" id="" media="print, projection, screen" />
- <script type="text/javascript" src="../jquery-latest.js"></script>
-
- <script type="text/javascript" src="../jquery.tablesorter.js"></script>
- <script type="text/javascript" src="../addons/pager/jquery.tablesorter.pager.js"></script>
- <script type="text/javascript" src="js/chili/chili-1.8b.js"></script>
- <script type="text/javascript" src="js/docs.js"></script>
- <script type="text/javascript" src="js/examples.js"></script>
-<script type="text/javascript" id="js">$(document).ready(function() {
- // call the tablesorter plugin
- $("table").tablesorter({
- // change the multi sort key from the default shift to alt button
- sortMultiSortKey: 'altKey'
- });
-}); </script>
-</head>
-<body>
-<div id="banner">
- <h1>table<em>sorter</em></h1>
- <h2>Change multi-column sorting key</h2>
- <h3>Flexible client-side table sorting</h3>
- <a href="index.html">Back to documentation</a>
-</div>
-<div id="main">
- <h1>Demo</h1>
- <div id="demo">
- <table cellspacing="1" class="tablesorter">
- <thead>
- <tr>
- <th>First Name</th>
- <th>Last Name</th>
- <th>Age</th>
- <th>Total</th>
- <th>Discount</th>
- <th>Date</th>
-
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>Peter</td>
- <td>Parker</td>
- <td>28</td>
- <td>$9.99</td>
- <td>20%</td>
-
- <td>Jul 6, 2006 8:14 AM</td>
- </tr>
- <tr>
- <td>John</td>
- <td>Hood</td>
- <td>33</td>
- <td>$19.99</td>
- <td>25%</td>
-
- <td>Dec 10, 2002 5:14 AM</td>
- </tr>
- <tr>
- <td>Clark</td>
- <td>Kent</td>
- <td>18</td>
- <td>$15.89</td>
- <td>44%</td>
- <td>Jan 12, 2003 11:14 AM</td>
- </tr>
- <tr>
- <td>Bruce</td>
- <td>Almighty</td>
- <td>45</td>
- <td>$153.19</td>
- <td>44%</td>
-
- <td>Jan 18, 2001 9:12 AM</td>
- </tr>
- <tr>
- <td>Bruce</td>
- <td>Evans</td>
- <td>22</td>
- <td>$13.19</td>
- <td>11%</td>
- <td>Jan 18, 2007 9:12 AM</td>
- </tr>
- </tbody>
- </table>
- </div>
- <h1>Javascript</h1>
- <div id="javascript">
- <pre class="javascript"></pre>
- </div>
- <h1>HTML</h1>
- <div id="html">
- <pre class="html"></pre>
- </div>
-</div>
-<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
-<script type="text/javascript">
-_uacct = "UA-2189649-2";
-urchinTracker();
-</script>
-</body>
-</html>
-
diff --git a/tablesorter/docs/example-option-sort-list.html b/tablesorter/docs/example-option-sort-list.html
deleted file mode 100644
index eda6372..0000000
--- a/tablesorter/docs/example-option-sort-list.html
+++ /dev/null
@@ -1,108 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us">
-<head>
- <title>jQuery plugin: Tablesorter 2.0 - Set a initial sorting order</title>
- <link rel="stylesheet" href="css/jq.css" type="text/css" media="print, projection, screen" />
- <link rel="stylesheet" href="../themes/blue/style.css" type="text/css" id="" media="print, projection, screen" />
- <script type="text/javascript" src="../jquery-latest.js"></script>
-
- <script type="text/javascript" src="../jquery.tablesorter.js"></script>
- <script type="text/javascript" src="../addons/pager/jquery.tablesorter.pager.js"></script>
- <script type="text/javascript" src="js/chili/chili-1.8b.js"></script>
- <script type="text/javascript" src="js/docs.js"></script>
- <script type="text/javascript" src="js/examples.js"></script>
-<script type="text/javascript" id="js">$(document).ready(function() {
- // call the tablesorter plugin
- $("table").tablesorter({
- // sort on the first column and third column, order asc
- sortList: [[0,0],[2,0]]
- });
-}); </script>
-</head>
-<body>
-<div id="banner">
- <h1>table<em>sorter</em></h1>
- <h2>Set a initial sorting order</h2>
- <h3>Flexible client-side table sorting</h3>
- <a href="index.html">Back to documentation</a>
-</div>
-<div id="main">
- <h1>Demo</h1>
- <div id="demo">
- <table cellspacing="1" class="tablesorter">
- <thead>
- <tr>
- <th>First Name</th>
- <th>Last Name</th>
- <th>Age</th>
- <th>Total</th>
- <th>Discount</th>
- <th>Date</th>
-
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>Peter</td>
- <td>Parker</td>
- <td>28</td>
- <td>$9.99</td>
- <td>20%</td>
-
- <td>Jul 6, 2006 8:14 AM</td>
- </tr>
- <tr>
- <td>John</td>
- <td>Hood</td>
- <td>33</td>
- <td>$19.99</td>
- <td>25%</td>
-
- <td>Dec 10, 2002 5:14 AM</td>
- </tr>
- <tr>
- <td>Clark</td>
- <td>Kent</td>
- <td>18</td>
- <td>$15.89</td>
- <td>44%</td>
- <td>Jan 12, 2003 11:14 AM</td>
- </tr>
- <tr>
- <td>Bruce</td>
- <td>Almighty</td>
- <td>45</td>
- <td>$153.19</td>
- <td>44%</td>
-
- <td>Jan 18, 2001 9:12 AM</td>
- </tr>
- <tr>
- <td>Bruce</td>
- <td>Evans</td>
- <td>22</td>
- <td>$13.19</td>
- <td>11%</td>
- <td>Jan 18, 2007 9:12 AM</td>
- </tr>
- </tbody>
- </table>
- </div>
- <h1>Javascript</h1>
- <div id="javascript">
- <pre class="javascript"></pre>
- </div>
- <h1>HTML</h1>
- <div id="html">
- <pre class="html"></pre>
- </div>
-</div>
-<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
-<script type="text/javascript">
-_uacct = "UA-2189649-2";
-urchinTracker();
-</script>
-</body>
-</html>
-
diff --git a/tablesorter/docs/example-option-sort-order.html b/tablesorter/docs/example-option-sort-order.html
deleted file mode 100644
index b3b0bbe..0000000
--- a/tablesorter/docs/example-option-sort-order.html
+++ /dev/null
@@ -1,108 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us">
-<head>
- <title>jQuery plugin: Tablesorter 2.0 - Set a initi
- <link rel="stylesheet" href="css/jq.css" type="text/css" media="print, projection, screen" />
- <link rel="stylesheet" href="../themes/blue/style.css" type="text/css" id="" media="print, projection, screen" />
- <script type="text/javascript" src="../jquery-latest.js"></script>
-
- <script type="text/javascript" src="../jquery.tablesorter.js"></script>
- <script type="text/javascript" src="../addons/pager/jquery.tablesorter.pager.js"></script>
- <script type="text/javascript" src="js/chili/chili-1.8b.js"></script>
- <script type="text/javascript" src="js/docs.js"></script>
- <script type="text/javascript" src="js/examples.js"></script>
-<script type="text/javascript" id="js">$(document).ready(function() {
- // call the tablesorter plugin
- $("table").tablesorter({
- // change the default sorting order from 'asc' to 'desc'
- sortInitialOrder: 'desc'
- });
-}); </script>
-</head>
-<body>
-<div id="banner">
- <h1>table<em>sorter</em></h1>
- <h2>Set a initial sorting order</h2>
- <h3>Flexible client-side table sorting</h3>
- <a href="index.html">Back to documentation</a>
-</div>
-<div id="main">
- <h1>Demo</h1>
- <div id="demo">
- <table cellspacing="1" class="tablesorter">
- <thead>
- <tr>
- <th>First Name</th>
- <th>Last Name</th>
- <th>Age</th>
- <th>Total</th>
- <th>Discount</th>
- <th>Date</th>
-
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>Peter</td>
- <td>Parker</td>
- <td>28</td>
- <td>$9.99</td>
- <td>20%</td>
-
- <td>Jul 6, 2006 8:14 AM</td>
- </tr>
- <tr>
- <td>John</td>
- <td>Hood</td>
- <td>33</td>
- <td>$19.99</td>
- <td>25%</td>
-
- <td>Dec 10, 2002 5:14 AM</td>
- </tr>
- <tr>
- <td>Clark</td>
- <td>Kent</td>
- <td>18</td>
- <td>$15.89</td>
- <td>44%</td>
- <td>Jan 12, 2003 11:14 AM</td>
- </tr>
- <tr>
- <td>Bruce</td>
- <td>Almighty</td>
- <td>45</td>
- <td>$153.19</td>
- <td>44%</td>
-
- <td>Jan 18, 2001 9:12 AM</td>
- </tr>
- <tr>
- <td>Bruce</td>
- <td>Evans</td>
- <td>22</td>
- <td>$13.19</td>
- <td>11%</td>
- <td>Jan 18, 2007 9:12 AM</td>
- </tr>
- </tbody>
- </table>
- </div>
- <h1>Javascript</h1>
- <div id="javascript">
- <pre class="javascript"></pre>
- </div>
- <h1>HTML</h1>
- <div id="html">
- <pre class="html"></pre>
- </div>
-</div>
-<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
-<script type="text/javascript">
-_uacct = "UA-2189649-2";
-urchinTracker();
-</script>
-</body>
-</html>
-
diff --git a/tablesorter/docs/example-option-text-extraction.html b/tablesorter/docs/example-option-text-extraction.html
deleted file mode 100644
index fb4b523..0000000
--- a/tablesorter/docs/example-option-text-extraction.html
+++ /dev/null
@@ -1,85 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us">
-<head>
- <title>jQuery plugin: Tablesorter 2.0 - Dealing with markup inside cells</title>
- <link rel="stylesheet" href="css/jq.css" type="text/css" media="print, projection, screen" />
- <link rel="stylesheet" href="../themes/blue/style.css" type="text/css" id="" media="print, projection, screen" />
- <script type="text/javascript" src="../jquery-latest.js"></script>
-
- <script type="text/javascript" src="../jquery.tablesorter.js"></script>
- <script type="text/javascript" src="../addons/pager/jquery.tablesorter.pager.js"></script>
- <script type="text/javascript" src="js/chili/chili-1.8b.js"></script>
- <script type="text/javascript" src="js/docs.js"></script>
- <script type="text/javascript" src="js/examples.js"></script>
-<script type="text/javascript" id="js">$(document).ready(function() {
-
- // call the tablesorter plugin
- $("table").tablesorter({
- // define a custom text extraction function
- textExtraction: function(node) {
- // extract data from markup and return it
- return node.childNodes[0].childNodes[0].innerHTML;
- }
- });
-}); </script>
-</head>
-<body>
-<div id="banner">
- <h1>table<em>sorter</em></h1>
- <h2>Dealing with markup inside cells</h2>
- <h3>Flexible client-side table sorting</h3>
- <a href="index.html">Back to documentation</a>
-</div>
-<div id="main">
- <h1>Demo</h1>
- <div id="demo">
- <table cellspacing="1" class="tablesorter">
- <thead>
- <tr>
- <th>First Name</th>
- <th>Last Name</th>
- <th>Age</th>
- <th>Total</th>
- <th>Discount</th>
- <th>Date</th>
-
- </tr>
- </thead>
- <tbody>
- <tr>
- <td><strong><em>Peter</em></strong></td>
- <td><strong><em>Parker</em></strong></td>
- <td><strong><em>28</em></strong></td>
- <td><strong><em>$9.99</em></strong></td>
- <td><strong><em>20%</em></strong></td>
- <td><strong><em>Jul 6, 2006 8:14 AM</em></strong></td>
- </tr>
- <tr>
- <td><strong><em>John</em></strong></td>
- <td><strong><em>Hood</em></strong></td>
- <td><strong><em>33</em></strong></td>
- <td><strong><em>$19.99</em></strong></td>
- <td><strong><em>25%</em></strong></td>
- <td><strong><em>Dec 10, 2002 5:14 AM</em></strong></td>
- </tr>
- </tbody>
- </table>
- </div>
- <h1>Javascript</h1>
- <div id="javascript">
- <pre class="javascript"></pre>
- </div>
- <h1>HTML</h1>
- <div id="html">
- <pre class="html"></pre>
- </div>
-</div>
-<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
-<script type="text/javascript">
-_uacct = "UA-2189649-2";
-urchinTracker();
-</script>
-</body>
-</html>
-
diff --git a/tablesorter/docs/example-options-headers.html b/tablesorter/docs/example-options-headers.html
deleted file mode 100644
index b382b35..0000000
--- a/tablesorter/docs/example-options-headers.html
+++ /dev/null
@@ -1,118 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us">
-<head>
- <title>jQuery plugin: Tablesorter 2.0 - Disable headers using options</title>
- <link rel="stylesheet" href="css/jq.css" type="text/css" media="print, projection, screen" />
- <link rel="stylesheet" href="../themes/blue/style.css" type="text/css" id="" media="print, projection, screen" />
- <script type="text/javascript" src="../jquery-latest.js"></script>
-
- <script type="text/javascript" src="../jquery.tablesorter.js"></script>
- <script type="text/javascript" src="../addons/pager/jquery.tablesorter.pager.js"></script>
- <script type="text/javascript" src="js/chili/chili-1.8b.js"></script>
- <script type="text/javascript" src="js/docs.js"></script>
- <script type="text/javascript" src="js/examples.js"></script>
-<script type="text/javascript" id="js">$(document).ready(function() {
- $("table").tablesorter({
- // pass the headers argument and assing a object
- headers: {
- // assign the secound column (we start counting zero)
- 1: {
- // disable it by setting the property sorter to false
- sorter: false
- },
- // assign the third column (we start counting zero)
- 2: {
- // disable it by setting the property sorter to false
- sorter: false
- }
- }
- });
-});</script>
-</head>
-<body>
-<div id="banner">
- <h1>table<em>sorter</em></h1>
- <h2>Disable headers using options</h2>
- <h3>Flexible client-side table sorting</h3>
- <a href="index.html">Back to documentation</a>
-</div>
-<div id="main">
- <h1>Demo</h1>
- <div id="demo">
- <table cellspacing="1" class="tablesorter">
- <thead>
- <tr>
- <th>First Name</th>
- <th>Last Name</th>
- <th>Age</th>
- <th>Total</th>
- <th>Discount</th>
- <th>Date</th>
-
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>Peter</td>
- <td>Parker</td>
- <td>28</td>
- <td>$9.99</td>
- <td>20%</td>
-
- <td>Jul 6, 2006 8:14 AM</td>
- </tr>
- <tr>
- <td>John</td>
- <td>Hood</td>
- <td>33</td>
- <td>$19.99</td>
- <td>25%</td>
-
- <td>Dec 10, 2002 5:14 AM</td>
- </tr>
- <tr>
- <td>Clark</td>
- <td>Kent</td>
- <td>18</td>
- <td>$15.89</td>
- <td>44%</td>
- <td>Jan 12, 2003 11:14 AM</td>
- </tr>
- <tr>
- <td>Bruce</td>
- <td>Almighty</td>
- <td>45</td>
- <td>$153.19</td>
- <td>44%</td>
-
- <td>Jan 18, 2001 9:12 AM</td>
- </tr>
- <tr>
- <td>Bruce</td>
- <td>Evans</td>
- <td>22</td>
- <td>$13.19</td>
- <td>11%</td>
- <td>Jan 18, 2007 9:12 AM</td>
- </tr>
- </tbody>
- </table>
- </div>
- <h1>Javascript</h1>
- <div id="javascript">
- <pre class="javascript"></pre>
- </div>
- <h1>HTML</h1>
- <div id="html">
- <pre class="html"></pre>
- </div>
-</div>
-<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
-<script type="text/javascript">
-_uacct = "UA-2189649-2";
-urchinTracker();
-</script>
-</body>
-</html>
-
diff --git a/tablesorter/docs/example-pager.html b/tablesorter/docs/example-pager.html
deleted file mode 100644
index 6313568..0000000
--- a/tablesorter/docs/example-pager.html
+++ /dev/null
@@ -1,329 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us">
-<head>
- <title>jQuery plugin: Tablesorter 2.0 - Pager plugin</title>
- <link rel="stylesheet" href="css/jq.css" type="text/css" media="print, projection, screen" />
- <link rel="stylesheet" href="../themes/blue/style.css" type="text/css" media="print, projection, screen" />
- <script type="text/javascript" src="../jquery-latest.js"></script>
- <script type="text/javascript" src="../jquery.tablesorter.js"></script>
- <script type="text/javascript" src="../addons/pager/jquery.tablesorter.pager.js"></script>
- <script type="text/javascript" src="js/chili/chili-1.8b.js"></script>
- <script type="text/javascript" src="js/docs.js"></script>
- <script type="text/javascript">
- $(function() {
- $("table")
- .tablesorter({widthFixed: true, widgets: ['zebra']})
- .tablesorterPager({container: $("#pager")});
- });
- </script>
-</head>
-<body>
-<div id="banner">
- <h1>table<em>sorter</em></h1>
- <h2>Pager plugin</h2>
- <h3>Flexible client-side table sorting</h3>
- <a href="index.html">Back to documentation</a>
-</div>
-<div id="main">
-
-<h1>Javascript</h1>
-<pre class="javascript">
-$(document).ready(function() {
- $("table")
- .tablesorter({widthFixed: true, widgets: ['zebra']})
- .tablesorterPager({container: $("#pager")});
-});
-</pre>
-<h1>Demo</h1>
-<table cellspacing="1" class="tablesorter">
- <thead>
- <tr>
- <th>Name</th>
- <th>Major</th>
- <th>Sex</th>
- <th>English</th>
- <th>Japanese</th>
- <th>Calculus</th>
- <th>Geometry</th>
-
- </tr>
- </thead>
- <tfoot>
- <tr>
- <th>Name</th>
- <th>Major</th>
- <th>Sex</th>
- <th>English</th>
- <th>Japanese</th>
- <th>Calculus</th>
- <th>Geometry</th>
-
- </tr>
- </tfoot>
- <tbody>
- <tr>
- <td>Student01</td>
- <td>Languages</td>
- <td>male</td>
-
- <td>80</td>
- <td>70</td>
- <td>75</td>
- <td>80</td>
- </tr>
- <tr>
- <td>Student02</td>
-
- <td>Mathematics</td>
- <td>male</td>
- <td>90</td>
- <td>88</td>
- <td>100</td>
- <td>90</td>
-
- </tr>
- <tr>
- <td>Student03</td>
- <td>Languages</td>
- <td>female</td>
- <td>85</td>
- <td>95</td>
-
- <td>80</td>
- <td>85</td>
- </tr>
- <tr>
- <td>Student04</td>
- <td>Languages</td>
- <td>male</td>
-
- <td>60</td>
- <td>55</td>
- <td>100</td>
- <td>100</td>
- </tr>
- <tr>
- <td>Student05</td>
-
- <td>Languages</td>
- <td>female</td>
- <td>68</td>
- <td>80</td>
- <td>95</td>
- <td>80</td>
-
- </tr>
- <tr>
- <td>Student06</td>
- <td>Mathematics</td>
- <td>male</td>
- <td>100</td>
- <td>99</td>
-
- <td>100</td>
- <td>90</td>
- </tr>
- <tr>
- <td>Student07</td>
- <td>Mathematics</td>
- <td>male</td>
-
- <td>85</td>
- <td>68</td>
- <td>90</td>
- <td>90</td>
- </tr>
- <tr>
- <td>Student08</td>
-
- <td>Languages</td>
- <td>male</td>
- <td>100</td>
- <td>90</td>
- <td>90</td>
- <td>85</td>
-
- </tr>
- <tr>
- <td>Student09</td>
- <td>Mathematics</td>
- <td>male</td>
- <td>80</td>
- <td>50</td>
-
- <td>65</td>
- <td>75</td>
- </tr>
- <tr>
- <td>Student10</td>
- <td>Languages</td>
- <td>male</td>
-
- <td>85</td>
- <td>100</td>
- <td>100</td>
- <td>90</td>
- </tr>
- <tr>
- <td>Student11</td>
-
- <td>Languages</td>
- <td>male</td>
- <td>86</td>
- <td>85</td>
- <td>100</td>
- <td>100</td>
-
- </tr>
- <tr>
- <td>Student12</td>
- <td>Mathematics</td>
- <td>female</td>
- <td>100</td>
- <td>75</td>
-
- <td>70</td>
- <td>85</td>
- </tr>
- <tr>
- <td>Student13</td>
- <td>Languages</td>
- <td>female</td>
-
- <td>100</td>
- <td>80</td>
- <td>100</td>
- <td>90</td>
- </tr>
- <tr>
- <td>Student14</td>
-
- <td>Languages</td>
- <td>female</td>
- <td>50</td>
- <td>45</td>
- <td>55</td>
- <td>90</td>
-
- </tr>
- <tr>
- <td>Student15</td>
- <td>Languages</td>
- <td>male</td>
- <td>95</td>
- <td>35</td>
-
- <td>100</td>
- <td>90</td>
- </tr>
- <tr>
- <td>Student16</td>
- <td>Languages</td>
- <td>female</td>
-
- <td>100</td>
- <td>50</td>
- <td>30</td>
- <td>70</td>
- </tr>
- <tr>
- <td>Student17</td>
-
- <td>Languages</td>
- <td>female</td>
- <td>80</td>
- <td>100</td>
- <td>55</td>
- <td>65</td>
-
- </tr>
- <tr>
- <td>Student18</td>
- <td>Mathematics</td>
- <td>male</td>
- <td>30</td>
- <td>49</td>
-
- <td>55</td>
- <td>75</td>
- </tr>
- <tr>
- <td>Student19</td>
- <td>Languages</td>
- <td>male</td>
-
- <td>68</td>
- <td>90</td>
- <td>88</td>
- <td>70</td>
- </tr>
- <tr>
- <td>Student20</td>
-
- <td>Mathematics</td>
- <td>male</td>
- <td>40</td>
- <td>45</td>
- <td>40</td>
- <td>80</td>
-
- </tr>
- <tr>
- <td>Student21</td>
- <td>Languages</td>
- <td>male</td>
- <td>50</td>
- <td>45</td>
-
- <td>100</td>
- <td>100</td>
- </tr>
- <tr>
- <td>Student22</td>
- <td>Mathematics</td>
- <td>male</td>
-
- <td>100</td>
- <td>99</td>
- <td>100</td>
- <td>90</td>
- </tr>
- <tr>
- <td>Student23</td>
-
- <td>Languages</td>
- <td>female</td>
- <td>85</td>
- <td>80</td>
- <td>80</td>
- <td>80</td>
-
- </tr>
- <tr><td>student23</td><td>Mathematics</td><td>male</td><td>82</td><td>77</td><td>0</td><td>79</td></tr><tr><td>student24</td><td>Languages</td><td>female</td><td>100</td><td>91</td><td>13</td><td>82</td></tr><tr><td>student25</td><td>Mathematics</td><td>male</td><td>22</td><td>96</td><td>82</td><td>53</td></tr><tr><td>student26</td><td>Languages</td><td>female</td><td>37</td><td>29</td><td>56</td><td>59</td></tr><tr><td>student27</td><td>Mathematics</td><td>male</td><td>86</td><td>82</t [...]
-</table>
-<div id="pager" class="pager">
- <form>
- <img src="../addons/pager/icons/first.png" class="first"/>
- <img src="../addons/pager/icons/prev.png" class="prev"/>
- <input type="text" class="pagedisplay"/>
- <img src="../addons/pager/icons/next.png" class="next"/>
- <img src="../addons/pager/icons/last.png" class="last"/>
- <select class="pagesize">
- <option selected="selected" value="10">10</option>
- <option value="20">20</option>
- <option value="30">30</option>
- <option value="40">40</option>
- </select>
- </form>
-</div>
-
-</div>
-<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
-<script type="text/javascript">
-_uacct = "UA-2189649-2";
-urchinTracker();
-</script>
-</body>
-</html>
-
diff --git a/tablesorter/docs/example-parsers.html b/tablesorter/docs/example-parsers.html
deleted file mode 100644
index 002ee0a..0000000
--- a/tablesorter/docs/example-parsers.html
+++ /dev/null
@@ -1,112 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us">
-<head>
- <title>jQuery plugin: Tablesorter 2.0 - Writing custom parsers</title>
- <link rel="stylesheet" href="css/jq.css" type="text/css" media="print, projection, screen" />
- <link rel="stylesheet" href="../themes/blue/style.css" type="text/css" media="print, projection, screen" />
- <script type="text/javascript" src="../jquery-latest.js"></script>
-
- <script type="text/javascript" src="../jquery.tablesorter.js"></script>
- <script type="text/javascript" src="../addons/pager/jquery.tablesorter.pager.js"></script>
- <script type="text/javascript" src="js/chili/chili-1.8b.js"></script>
- <script type="text/javascript" src="js/docs.js"></script>
- <script type="text/javascript" src="js/examples.js"></script>
- <script type="text/javascript" id="js">
- // add parser through the tablesorter addParser method
- $.tablesorter.addParser({
- // set a unique id
- id: 'grades',
- is: function(s) {
- // return false so this parser is not auto detected
- return false;
- },
- format: function(s) {
- // format your data for normalization
- return s.toLowerCase().replace(/good/,2).replace(/medium/,1).replace(/bad/,0);
- },
- // set type, either numeric or text
- type: 'numeric'
- });
-
- $(function() {
- $("table").tablesorter({
- headers: {
- 6: {
- sorter:'grades'
- }
- }
- });
- });
- </script>
-</head>
-<body>
-<div id="banner">
- <h1>table<em>sorter</em></h1>
- <h2>Writing custom parsers</h2>
- <h3>Flexible client-side table sorting</h3>
- <a href="index.html">Back to documentation</a>
-</div>
-<div id="main">
- <h1>Demo</h1>
- <div id="demo">
- <table cellspacing="1" class="tablesorter">
- <thead>
- <tr>
- <th>Name</th>
- <th>Major</th>
- <th>Gender</th>
- <th>English</th>
- <th>Japanese</th>
- <th>Calculus</th>
- <th>Overall grades</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>Student01</td>
- <td>Languages</td>
- <td>male</td>
- <td>80</td>
- <td>70</td>
- <td>75</td>
- <td>bad</td>
- </tr>
- <tr>
- <td>Student02</td>
- <td>Mathematics</td>
- <td>male</td>
- <td>90</td>
- <td>88</td>
- <td>100</td>
- <td>good</td>
- </tr>
- <tr>
- <td>Student03</td>
- <td>Languages</td>
- <td>female</td>
- <td>85</td>
- <td>95</td>
- <td>80</td>
- <td>medium</td>
- </tr>
- </tbody>
- </table>
- </div>
- <h1>Javascript</h1>
- <div id="javascript">
- <pre class="javascript"></pre>
- </div>
- <h1>HTML</h1>
- <div id="html">
- <pre class="html"></pre>
- </div>
-</div>
-<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
-<script type="text/javascript">
-_uacct = "UA-2189649-2";
-urchinTracker();
-</script>
-</body>
-</html>
-
diff --git a/tablesorter/docs/example-trigger-sort.html b/tablesorter/docs/example-trigger-sort.html
deleted file mode 100644
index d107921..0000000
--- a/tablesorter/docs/example-trigger-sort.html
+++ /dev/null
@@ -1,113 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us">
-<head>
- <title>jQuery plugin: Tablesorter 2.0 - Sort table using a link outside the table</title>
- <link rel="stylesheet" href="css/jq.css" type="text/css" media="print, projection, screen" />
- <link rel="stylesheet" href="../themes/blue/style.css" type="text/css" id="" media="print, projection, screen" />
- <script type="text/javascript" src="../jquery-latest.js"></script>
-
- <script type="text/javascript" src="../jquery.tablesorter.js"></script>
- <script type="text/javascript" src="../addons/pager/jquery.tablesorter.pager.js"></script>
- <script type="text/javascript" src="js/chili/chili-1.8b.js"></script>
- <script type="text/javascript" src="js/docs.js"></script>
- <script type="text/javascript" src="js/examples.js"></script>
- <script type="text/javascript" id="js">$(document).ready(function() {
- $("table").tablesorter();
- $("#trigger-link").click(function() {
- // set sorting column and direction, this will sort on the first and third column the column index starts at zero
- var sorting = [[0,0],[2,0]];
- // sort on the first column
- $("table").trigger("sorton",[sorting]);
- // return false to stop default link action
- return false;
- });
-});</script>
-</head>
-<body>
-<div id="banner">
- <h1>table<em>sorter</em></h1>
- <h2>Sort table using a link outside the table</h2>
- <h3>Flexible client-side table sorting</h3>
- <a href="index.html">Back to documentation</a>
-</div>
-<div id="main">
- <h1>Demo</h1>
- <div id="demo">
- <table cellspacing="1" class="tablesorter">
- <thead>
- <tr>
- <th>First Name</th>
- <th>Last Name</th>
- <th>Age</th>
- <th>Total</th>
- <th>Discount</th>
- <th>Date</th>
-
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>Peter</td>
- <td>Parker</td>
- <td>28</td>
- <td>$9.99</td>
- <td>20%</td>
-
- <td>Jul 6, 2006 8:14 AM</td>
- </tr>
- <tr>
- <td>John</td>
- <td>Hood</td>
- <td>33</td>
- <td>$19.99</td>
- <td>25%</td>
-
- <td>Dec 10, 2002 5:14 AM</td>
- </tr>
- <tr>
- <td>Clark</td>
- <td>Kent</td>
- <td>18</td>
- <td>$15.89</td>
- <td>44%</td>
- <td>Jan 12, 2003 11:14 AM</td>
- </tr>
- <tr>
- <td>Bruce</td>
- <td>Almighty</td>
- <td>45</td>
- <td>$153.19</td>
- <td>44%</td>
-
- <td>Jan 18, 2001 9:12 AM</td>
- </tr>
- <tr>
- <td>Bruce</td>
- <td>Evans</td>
- <td>22</td>
- <td>$13.19</td>
- <td>11%</td>
- <td>Jan 18, 2007 9:12 AM</td>
- </tr>
- </tbody></table>
- <a href="#" id="trigger-link">Sort first and third columns</a>
- <br/>
- <br/>
- </div>
- <h1>Javascript</h1>
- <div id="javascript">
- <pre class="javascript"></pre>
- </div>
- <h1>HTML</h1>
- <div id="html">
- <pre class="html"></pre>
- </div>
-</div>
-<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
-<script type="text/javascript">
-_uacct = "UA-2189649-2";
-urchinTracker();
-</script>
-</body>
-</html>
diff --git a/tablesorter/docs/example-triggers.html b/tablesorter/docs/example-triggers.html
deleted file mode 100644
index 58d1711..0000000
--- a/tablesorter/docs/example-triggers.html
+++ /dev/null
@@ -1,336 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us">
-<head>
- <title>jQuery plugin: Tablesorter 2.0 - Triggers sortStart and sortEnd</title>
- <link rel="stylesheet" href="css/jq.css" type="text/css" media="print, projection, screen" />
- <link rel="stylesheet" href="../themes/blue/style.css" type="text/css" id="" media="print, projection, screen" />
- <script type="text/javascript" src="../jquery-latest.js"></script>
- <script type="text/javascript" src="../jquery.tablesorter.js"></script>
- <script type="text/javascript" src="js/chili/chili-1.8b.js"></script>
- <script type="text/javascript" src="js/docs.js"></script>
- <script type="text/javascript" src="js/examples.js"></script>
-<script type="text/javascript" id="js">$(document).ready(function() {
- // call the tablesorter plugin, the magic happens in the markup
- $("table").tablesorter();
- //assign the sortStart event
- $("table").bind("sortStart",function() {
- $("#overlay").show();
- }).bind("sortEnd",function() {
- $("#overlay").hide();
- });
-}); </script>
-<style>
-#overlay {
- top: 100px;
- left: 50%;
- position: absolute;
- margin-left: -100px;
- width: 200px;
- text-align: center;
- display: none;
- margin-top: -10px;
- background: #000;
- color: #FFF;
-}
-</style>
-</head>
-<body>
-<div id="banner">
- <h1>table<em>sorter</em></h1>
- <h2>Triggers sortStart and sortEnd</h2>
- <h3>Flexible client-side table sorting</h3>
- <a href="index.html">Back to documentation</a>
-</div>
-<div id="main">
- <h1>Demo</h1>
- <div id="">
- <div id="overlay">
- Please wait...
- </div>
- <!-- sortlist is appended to the table using the class attribute and is picked up by metadata plugin -->
- <table cellspacing="1" class="tablesorter">
- <thead>
- <tr>
- <th>Name</th>
- <th>Major</th>
- <th>Sex</th>
- <th>English</th>
- <th>Japanese</th>
- <th>Calculus</th>
- <th>Geometry</th>
-
- </tr>
- </thead>
- <tfoot>
- <tr>
- <th>Name</th>
- <th>Major</th>
- <th>Sex</th>
- <th>English</th>
- <th>Japanese</th>
- <th>Calculus</th>
- <th>Geometry</th>
-
- </tr>
- </tfoot>
- <tbody>
- <tr>
- <td>Student01</td>
- <td>Languages</td>
- <td>male</td>
-
- <td>80</td>
- <td>70</td>
- <td>75</td>
- <td>80</td>
- </tr>
- <tr>
- <td>Student02</td>
-
- <td>Mathematics</td>
- <td>male</td>
- <td>90</td>
- <td>88</td>
- <td>100</td>
- <td>90</td>
-
- </tr>
- <tr>
- <td>Student03</td>
- <td>Languages</td>
- <td>female</td>
- <td>85</td>
- <td>95</td>
-
- <td>80</td>
- <td>85</td>
- </tr>
- <tr>
- <td>Student04</td>
- <td>Languages</td>
- <td>male</td>
-
- <td>60</td>
- <td>55</td>
- <td>100</td>
- <td>100</td>
- </tr>
- <tr>
- <td>Student05</td>
-
- <td>Languages</td>
- <td>female</td>
- <td>68</td>
- <td>80</td>
- <td>95</td>
- <td>80</td>
-
- </tr>
- <tr>
- <td>Student06</td>
- <td>Mathematics</td>
- <td>male</td>
- <td>100</td>
- <td>99</td>
-
- <td>100</td>
- <td>90</td>
- </tr>
- <tr>
- <td>Student07</td>
- <td>Mathematics</td>
- <td>male</td>
-
- <td>85</td>
- <td>68</td>
- <td>90</td>
- <td>90</td>
- </tr>
- <tr>
- <td>Student08</td>
-
- <td>Languages</td>
- <td>male</td>
- <td>100</td>
- <td>90</td>
- <td>90</td>
- <td>85</td>
-
- </tr>
- <tr>
- <td>Student09</td>
- <td>Mathematics</td>
- <td>male</td>
- <td>80</td>
- <td>50</td>
-
- <td>65</td>
- <td>75</td>
- </tr>
- <tr>
- <td>Student10</td>
- <td>Languages</td>
- <td>male</td>
-
- <td>85</td>
- <td>100</td>
- <td>100</td>
- <td>90</td>
- </tr>
- <tr>
- <td>Student11</td>
-
- <td>Languages</td>
- <td>male</td>
- <td>86</td>
- <td>85</td>
- <td>100</td>
- <td>100</td>
-
- </tr>
- <tr>
- <td>Student12</td>
- <td>Mathematics</td>
- <td>female</td>
- <td>100</td>
- <td>75</td>
-
- <td>70</td>
- <td>85</td>
- </tr>
- <tr>
- <td>Student13</td>
- <td>Languages</td>
- <td>female</td>
-
- <td>100</td>
- <td>80</td>
- <td>100</td>
- <td>90</td>
- </tr>
- <tr>
- <td>Student14</td>
-
- <td>Languages</td>
- <td>female</td>
- <td>50</td>
- <td>45</td>
- <td>55</td>
- <td>90</td>
-
- </tr>
- <tr>
- <td>Student15</td>
- <td>Languages</td>
- <td>male</td>
- <td>95</td>
- <td>35</td>
-
- <td>100</td>
- <td>90</td>
- </tr>
- <tr>
- <td>Student16</td>
- <td>Languages</td>
- <td>female</td>
-
- <td>100</td>
- <td>50</td>
- <td>30</td>
- <td>70</td>
- </tr>
- <tr>
- <td>Student17</td>
-
- <td>Languages</td>
- <td>female</td>
- <td>80</td>
- <td>100</td>
- <td>55</td>
- <td>65</td>
-
- </tr>
- <tr>
- <td>Student18</td>
- <td>Mathematics</td>
- <td>male</td>
- <td>30</td>
- <td>49</td>
-
- <td>55</td>
- <td>75</td>
- </tr>
- <tr>
- <td>Student19</td>
- <td>Languages</td>
- <td>male</td>
-
- <td>68</td>
- <td>90</td>
- <td>88</td>
- <td>70</td>
- </tr>
- <tr>
- <td>Student20</td>
-
- <td>Mathematics</td>
- <td>male</td>
- <td>40</td>
- <td>45</td>
- <td>40</td>
- <td>80</td>
-
- </tr>
- <tr>
- <td>Student21</td>
- <td>Languages</td>
- <td>male</td>
- <td>50</td>
- <td>45</td>
-
- <td>100</td>
- <td>100</td>
- </tr>
- <tr>
- <td>Student22</td>
- <td>Mathematics</td>
- <td>male</td>
-
- <td>100</td>
- <td>99</td>
- <td>100</td>
- <td>90</td>
- </tr>
- <tr>
- <td>Student23</td>
-
- <td>Languages</td>
- <td>female</td>
- <td>85</td>
- <td>80</td>
- <td>80</td>
- <td>80</td>
-
- </tr>
- <tr><td>student23</td><td>Mathematics</td><td>male</td><td>82</td><td>77</td><td>0</td><td>79</td></tr><tr><td>student24</td><td>Languages</td><td>female</td><td>100</td><td>91</td><td>13</td><td>82</td></tr><tr><td>student25</td><td>Mathematics</td><td>male</td><td>22</td><td>96</td><td>82</td><td>53</td></tr><tr><td>student26</td><td>Languages</td><td>female</td><td>37</td><td>29</td><td>56</td><td>59</td></tr><tr><td>student27</td><td>Mathematics</td><td>male</td><td>86</td><td>82</ [...]
- </tbody>
- </table>
- </div>
- <h1>Javascript</h1>
- <div id="javascript">
- <pre class="javascript"></pre>
- </div>
- <h1>HTML</h1>
- <div id="html">
- <pre class="html"></pre>
- </div>
-</div>
-<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
-<script type="text/javascript">
-_uacct = "UA-2189649-2";
-urchinTracker();
-</script>
-</body>
-</html>
-
diff --git a/tablesorter/docs/example-update-cell.html b/tablesorter/docs/example-update-cell.html
deleted file mode 100644
index 3dbd8b0..0000000
--- a/tablesorter/docs/example-update-cell.html
+++ /dev/null
@@ -1,118 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us">
-<head>
- <title>jQuery plugin: Tablesorter 2.0 - Appending table data with ajax</title>
- <link rel="stylesheet" href="css/jq.css" type="text/css" media="print, projection, screen" />
- <link rel="stylesheet" href="../themes/blue/style.css" type="text/css" id="" media="print, projection, screen" />
- <script type="text/javascript" src="../jquery-latest.js"></script>
- <script type="text/javascript" src="../jquery.tablesorter.js"></script>
- <script type="text/javascript" src="js/chili/chili-1.8b.js"></script>
- <script type="text/javascript" src="js/docs.js"></script>
- <script type="text/javascript" src="js/examples.js"></script>
- <script type="text/javascript" id="js">
- $(document).ready(function() {
- $("table").tablesorter();
- $("table tbody td.discount").click(function() {
- // randomize a number
- var discount = '$' + Math.round(Math.random() * Math.random() * 100) + '.' + Math.round(Math.random() * Math.random() * 100);
- $(this).text(discount);
- $("table").trigger("updateCell",[this]);
- // set sorting column and direction, this will sort on the first and third column
- var sorting = [[3,1]];
- // sort on the first column
- $("table").trigger("sorton",[sorting]);
- return false;
-
-
- });
-});
- </script>
-</head>
-<body>
-<div id="banner">
- <h1>table<em>sorter</em></h1>
- <h2>Updateing the table cache</h2>
- <h3>Flexible client-side table sorting</h3>
- <a href="index.html">Back to documentation</a>
-</div>
-<div id="main">
- <h1>Demo</h1>
- <div id="demo">
- <table cellspacing="1" class="tablesorter">
- <thead>
- <tr>
- <th>First Name</th>
- <th>Last Name</th>
- <th>Age</th>
- <th>Total</th>
- <th>Discount</th>
- <th>Date</th>
-
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>Peter</td>
- <td>Parker</td>
- <td>28</td>
- <td class="discount">$9.99</td>
- <td>20%</td>
-
- <td>Jul 6, 2006 8:14 AM</td>
- </tr>
- <tr>
- <td>John</td>
- <td>Hood</td>
- <td>33</td>
- <td class="discount">$19.99</td>
- <td>25%</td>
-
- <td>Dec 10, 2002 5:14 AM</td>
- </tr>
- <tr>
- <td>Clark</td>
- <td>Kent</td>
- <td>18</td>
- <td class="discount">$15.89</td>
- <td>44%</td>
- <td>Jan 12, 2003 11:14 AM</td>
- </tr>
- <tr>
- <td>Bruce</td>
- <td>Almighty</td>
- <td>45</td>
- <td class="discount">$153.19</td>
- <td>44%</td>
-
- <td>Jan 18, 2001 9:12 AM</td>
- </tr>
- <tr>
- <td>Bruce</td>
- <td>Evans</td>
- <td>22</td>
- <td class="discount">$13.19</td>
- <td>11%</td>
- <td>Jan 18, 2007 9:12 AM</td>
- </tr>
- </tbody>
- </table>
- <br/>
- <br/>
- </div>
- <h1>Javascript</h1>
- <div id="javascript">
- <pre class="javascript"></pre>
- </div>
- <h1>HTML</h1>
- <div id="html">
- <pre class="html"></pre>
- </div>
-</div>
-<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
-<script type="text/javascript">
-_uacct = "UA-2189649-2";
-urchinTracker();
-</script>
-</body>
-</html>
diff --git a/tablesorter/docs/example-widgets.html b/tablesorter/docs/example-widgets.html
deleted file mode 100644
index 8077226..0000000
--- a/tablesorter/docs/example-widgets.html
+++ /dev/null
@@ -1,383 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us">
-<head>
- <title>jQuery plugin: Tablesorter 2.0 - Writing custom widgets</title>
- <link rel="stylesheet" href="css/jq.css" type="text/css" media="print, projection, screen" />
- <link rel="stylesheet" href="../themes/blue/style.css" type="text/css" media="print, projection, screen" />
- <script type="text/javascript" src="../jquery-latest.js"></script>
-
- <script type="text/javascript" src="../jquery.tablesorter.js"></script>
- <script type="text/javascript" src="../addons/pager/jquery.tablesorter.pager.js"></script>
- <script type="text/javascript" src="js/chili/chili-1.8b.js"></script>
- <script type="text/javascript" src="js/docs.js"></script>
- <script type="text/javascript">
- $(function() {
- // add new widget called repeatHeaders
- $.tablesorter.addWidget({
- // give the widget a id
- id: "repeatHeaders",
- // format is called when the on init and when a sorting has finished
- format: function(table) {
- // cache and collect all TH headers
- if(!this.headers) {
- var h = this.headers = [];
- $("thead th",table).each(function() {
- h.push(
- "<th>" + $(this).text() + "</th>"
- );
-
- });
- }
-
- // remove appended headers by classname.
- $("tr.repated-header",table).remove();
-
- // loop all tr elements and insert a copy of the "headers"
- for(var i=0; i < table.tBodies[0].rows.length; i++) {
- // insert a copy of the table head every 10th row
- if((i%5) == 4) {
- $("tbody tr:eq(" + i + ")",table).before(
- $("<tr></tr>").addClass("repated-header").html(this.headers.join(""))
-
- );
- }
- }
-
- }
- });
-
- // call the tablesorter plugin and assign widgets with id "zebra" (Default widget in the core) and the newly created "repeatHeaders"
- $("table").tablesorter({
- widgets: ['zebra','repeatHeaders']
- });
-
- });
- </script>
-</head>
-<body>
-<div id="banner">
- <h1>table<em>sorter</em></h1>
- <h2>Writing custom widgets</h2>
- <h3>Flexible client-side table sorting</h3>
- <a href="index.html">Back to documentation</a>
-</div>
-<div id="main">
-
-<h1>Javascript</h1>
-<pre class="javascript">
-// add new widget called repeatHeaders
-$.tablesorter.addWidget({
- // give the widget a id
- id: "repeatHeaders",
- // format is called when the on init and when a sorting has finished
- format: function(table) {
- // cache and collect all TH headers
- if(!this.headers) {
- var h = this.headers = [];
- $("thead th",table).each(function() {
- h.push(
- "<th>" + $(this).text() + "</th>"
- );
-
- });
- }
-
- // remove appended headers by classname.
- $("tr.repated-header",table).remove();
-
- // loop all tr elements and insert a copy of the "headers"
- for(var i=0; i < table.tBodies[0].rows.length; i++) {
- // insert a copy of the table head every 10th row
- if((i%5) == 4) {
- $("tbody tr:eq(" + i + ")",table).before(
- $("<tr></tr>").html(this.headers.join(""))
-
- );
- }
- }
- }
-});
-
-// call the tablesorter plugin and assign widgets with id "zebra" (Default widget in the core) and the newly created "repeatHeaders"
-$("table").tablesorter({
- widgets: ['zebra','repeatHeaders']
-});
-</pre>
-
-<h1>Demo</h1>
-<table cellspacing="1" class="tablesorter">
- <thead>
- <tr>
- <th>Name</th>
- <th>Major</th>
- <th>Sex</th>
- <th>English</th>
- <th>Japanese</th>
- <th>Calculus</th>
- <th>Geometry</th>
-
- </tr>
- </thead>
- <tfoot>
- <tr>
- <th>Name</th>
- <th>Major</th>
- <th>Sex</th>
- <th>English</th>
- <th>Japanese</th>
- <th>Calculus</th>
- <th>Geometry</th>
-
- </tr>
- </tfoot>
- <tbody>
- <tr>
- <td>Student01</td>
- <td>Languages</td>
- <td>male</td>
-
- <td>80</td>
- <td>70</td>
- <td>75</td>
- <td>80</td>
- </tr>
- <tr>
- <td>Student02</td>
-
- <td>Mathematics</td>
- <td>male</td>
- <td>90</td>
- <td>88</td>
- <td>100</td>
- <td>90</td>
-
- </tr>
- <tr>
- <td>Student03</td>
- <td>Languages</td>
- <td>female</td>
- <td>85</td>
- <td>95</td>
-
- <td>80</td>
- <td>85</td>
- </tr>
- <tr>
- <td>Student04</td>
- <td>Languages</td>
- <td>male</td>
-
- <td>60</td>
- <td>55</td>
- <td>100</td>
- <td>100</td>
- </tr>
- <tr>
- <td>Student05</td>
-
- <td>Languages</td>
- <td>female</td>
- <td>68</td>
- <td>80</td>
- <td>95</td>
- <td>80</td>
-
- </tr>
- <tr>
- <td>Student06</td>
- <td>Mathematics</td>
- <td>male</td>
- <td>100</td>
- <td>99</td>
-
- <td>100</td>
- <td>90</td>
- </tr>
- <tr>
- <td>Student07</td>
- <td>Mathematics</td>
- <td>male</td>
-
- <td>85</td>
- <td>68</td>
- <td>90</td>
- <td>90</td>
- </tr>
- <tr>
- <td>Student08</td>
-
- <td>Languages</td>
- <td>male</td>
- <td>100</td>
- <td>90</td>
- <td>90</td>
- <td>85</td>
-
- </tr>
- <tr>
- <td>Student09</td>
- <td>Mathematics</td>
- <td>male</td>
- <td>80</td>
- <td>50</td>
-
- <td>65</td>
- <td>75</td>
- </tr>
- <tr>
- <td>Student10</td>
- <td>Languages</td>
- <td>male</td>
-
- <td>85</td>
- <td>100</td>
- <td>100</td>
- <td>90</td>
- </tr>
- <tr>
- <td>Student11</td>
-
- <td>Languages</td>
- <td>male</td>
- <td>86</td>
- <td>85</td>
- <td>100</td>
- <td>100</td>
-
- </tr>
- <tr>
- <td>Student12</td>
- <td>Mathematics</td>
- <td>female</td>
- <td>100</td>
- <td>75</td>
-
- <td>70</td>
- <td>85</td>
- </tr>
- <tr>
- <td>Student13</td>
- <td>Languages</td>
- <td>female</td>
-
- <td>100</td>
- <td>80</td>
- <td>100</td>
- <td>90</td>
- </tr>
- <tr>
- <td>Student14</td>
-
- <td>Languages</td>
- <td>female</td>
- <td>50</td>
- <td>45</td>
- <td>55</td>
- <td>90</td>
-
- </tr>
- <tr>
- <td>Student15</td>
- <td>Languages</td>
- <td>male</td>
- <td>95</td>
- <td>35</td>
-
- <td>100</td>
- <td>90</td>
- </tr>
- <tr>
- <td>Student16</td>
- <td>Languages</td>
- <td>female</td>
-
- <td>100</td>
- <td>50</td>
- <td>30</td>
- <td>70</td>
- </tr>
- <tr>
- <td>Student17</td>
-
- <td>Languages</td>
- <td>female</td>
- <td>80</td>
- <td>100</td>
- <td>55</td>
- <td>65</td>
-
- </tr>
- <tr>
- <td>Student18</td>
- <td>Mathematics</td>
- <td>male</td>
- <td>30</td>
- <td>49</td>
-
- <td>55</td>
- <td>75</td>
- </tr>
- <tr>
- <td>Student19</td>
- <td>Languages</td>
- <td>male</td>
-
- <td>68</td>
- <td>90</td>
- <td>88</td>
- <td>70</td>
- </tr>
- <tr>
- <td>Student20</td>
-
- <td>Mathematics</td>
- <td>male</td>
- <td>40</td>
- <td>45</td>
- <td>40</td>
- <td>80</td>
-
- </tr>
- <tr>
- <td>Student21</td>
- <td>Languages</td>
- <td>male</td>
- <td>50</td>
- <td>45</td>
-
- <td>100</td>
- <td>100</td>
- </tr>
- <tr>
- <td>Student22</td>
- <td>Mathematics</td>
- <td>male</td>
-
- <td>100</td>
- <td>99</td>
- <td>100</td>
- <td>90</td>
- </tr>
- <tr>
- <td>Student23</td>
-
- <td>Languages</td>
- <td>female</td>
- <td>85</td>
- <td>80</td>
- <td>80</td>
- <td>80</td>
-
- </tr>
- </tbody>
-</table>
-</div>
-<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
-<script type="text/javascript">
-_uacct = "UA-2189649-2";
-urchinTracker();
-</script>
-</body>
-</html>
-
diff --git a/tablesorter/docs/img/external.png b/tablesorter/docs/img/external.png
deleted file mode 100644
index 419c06f..0000000
Binary files a/tablesorter/docs/img/external.png and /dev/null differ
diff --git a/tablesorter/docs/index.html b/tablesorter/docs/index.html
deleted file mode 100644
index 43c21f2..0000000
--- a/tablesorter/docs/index.html
+++ /dev/null
@@ -1,576 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us">
-<head>
- <title>jQuery plugin: Tablesorter 2.0</title>
- <link rel="stylesheet" href="css/jq.css" type="text/css" media="print, projection, screen" />
- <link rel="stylesheet" href="../themes/blue/style.css" type="text/css" media="print, projection, screen" />
- <script type="text/javascript" src="../jquery-latest.js"></script>
- <script type="text/javascript" src="../jquery.tablesorter.js"></script>
- <script type="text/javascript" src="js/chili/chili-1.8b.js"></script>
- <script type="text/javascript" src="js/docs.js"></script>
- <script type="text/javascript">
- $(function() {
- $("#tablesorter-demo").tablesorter({sortList:[[0,0],[2,1]], widgets: ['zebra']});
- $("#options").tablesorter({sortList: [[0,0]], headers: { 3:{sorter: false}, 4:{sorter: false}}});
- });
- </script>
-</head>
-<body>
-<div id="banner">
- <h1>table<em>sorter</em></h1>
- <h2>Documentation</h2>
- <h3>Flexible client-side table sorting</h3>
- <a href="#"></a>
-</div>
-<div id="main">
- <div class="digg">
- <script src="http://images.del.icio.us/static/js/blogbadge.js"></script>
- </div>
-
- <p>
- <strong>Author:</strong> <a class="external" href="http://lovepeacenukes.com">Christian Bach</a><br />
- <strong>Version:</strong> 2.0.5 (<a href="../changelog">changelog</a>)<br />
- <strong>Licence:</strong>
- Dual licensed under <a class="external" href="http://www.opensource.org/licenses/mit-license.php">MIT</a>
- or <a class="external" href="http://www.opensource.org/licenses/gpl-license.php">GPL</a> licenses.
- </p>
-
- <p class="tip update">
- <em>Update!</em> New version!, and the tablesorter docs are now available in russian, head over to <a class="external" href="http://tablesorter.ru/docs/">tablesorter.ru</a>
- </p>
-
- <p class="tip">
- <em>Helping out!</em> If you like tablesorter and you're feeling generous, take a look at my <a class="external" href="http://www.amazon.com/gp/registry/wishlist/3VAOWCL63NEA6/ref=wl_web/">Amazon Wish List</a>
- </p>
-
-
- <p>Comments and love letters can be sent to: <span class="email">christian at tablesorter dot com</span>.</p>
-
- <p> </p>
-
-
-
- <!--
- <p class="tip">
- <em>Help!</em> keep tablesorter.com up and running. If you like tablesorter, have a couple of bucks over or just feel like it. Please donate.</p>
- </p>
-
- <form name="_xclick" action="https://www.paypal.com/cgi-bin/webscr" method="post">
- <input type="hidden" name="cmd" value="_xclick">
- <input type="hidden" name="business" value="christian.bach at polyester.se">
- <input type="hidden" name="item_name" value="Tablesorter donation">
- <input type="hidden" name="currency_code" value="USD">
- <input type="hidden" name="amount" value="10.00">
- <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
- </form>
- -->
-
-
-
- <a name="Contents"></a>
- <h1>Contents</h1>
- <ol>
- <li><a href="#Introduction">Introduction</a></li>
- <li><a href="#Demo">Demo</a></li>
- <li><a href="#Getting-Started">Getting started</a></li>
-
- <li><a href="#Examples">Examples</a></li>
-
- <li><a href="#Configuration">Configuration</a></li>
- <li><a href="#Download">Download</a></li>
- <li><a href="#Compatibility">Compatibility</a></li>
- <li><a href="#Support">Support</a></li>
- <li><a href="#Credits">Credits</a></li>
- </ol>
-
- <a name="Introduction"></a>
- <h1>Introduction</h1>
- <p>
- tablesorter is a <a class="external" href="http://jquery.com">jQuery</a> plugin for turning a
- standard HTML table with THEAD and TBODY tags into a sortable table without page refreshes.
- tablesorter can successfully parse and sort many types of data including linked data in a cell.
- It has many useful features including:
- </p>
-
- <ul>
- <li>Multi-column sorting</li>
- <li>Parsers for sorting text, URIs, integers, currency, floats, IP addresses, dates (ISO, long and short formats), time. <a href="example-parsers.html">Add your own easily</a></li>
- <!--
- <li>Support for ROWSPAN and COLSPAN on TH elements</li>
- -->
- <li>Support secondary "hidden" sorting (e.g., maintain alphabetical sort when sorting on other criteria)</li>
- <li>Extensibility via <a href="example-widgets.html">widget system</a></li>
- <li>Cross-browser: IE 6.0+, FF 2+, Safari 2.0+, Opera 9.0+</li>
- <li>Small code size</li>
-
- </ul>
-
- <a name="Demo"></a>
- <h1>Demo</h1>
-
- <table id="tablesorter-demo" class="tablesorter" border="0" cellpadding="0" cellspacing="1">
- <thead>
- <tr>
- <th>First Name</th>
- <th>Last Name</th>
- <th>Age</th>
- <th>Total</th>
- <th>Discount</th>
- <th>Difference</th>
- <th>Date</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>Peter</td>
- <td>Parker</td>
- <td>28</td>
- <td>$9.99</td>
- <td>20.9%</td>
- <td>+12.1</td>
- <td>Jul 6, 2006 8:14 AM</td>
- </tr>
- <tr>
- <td>John</td>
- <td>Hood</td>
- <td>33</td>
- <td>$19.99</td>
- <td>25%</td>
- <td>+12</td>
- <td>Dec 10, 2002 5:14 AM</td>
- </tr>
- <tr>
- <td>Clark</td>
- <td>Kent</td>
- <td>18</td>
- <td>$15.89</td>
- <td>44%</td>
- <td>-26</td>
- <td>Jan 12, 2003 11:14 AM</td>
- </tr>
- <tr>
- <td>Bruce</td>
- <td>Almighty</td>
- <td>45</td>
- <td>$153.19</td>
- <td>44.7%</td>
- <td>+77</td>
- <td>Jan 18, 2001 9:12 AM</td>
- </tr>
- <tr>
- <td>Bruce</td>
- <td>Evans</td>
- <td>22</td>
- <td>$13.19</td>
- <td>11%</td>
- <td>-100.9</td>
- <td>Jan 18, 2007 9:12 AM</td>
- </tr>
- <tr>
- <td>Bruce</td>
- <td>Evans</td>
- <td>22</td>
- <td>$13.19</td>
- <td>11%</td>
- <td>0</td>
- <td>Jan 18, 2007 9:12 AM</td>
- </tr>
- </tbody>
- </table>
-
- <p class="tip">
- <em>TIP!</em> Sort multiple columns simultaneously by holding down the shift key and clicking a second, third or even fourth column header!
- </p>
-
-
- <a name="Getting-Started"></a>
- <h1>Getting started</h1>
- <p>
- To use the tablesorter plugin, include the <a class="external" href="http://jquery.com">jQuery</a>
- library and the tablesorter plugin inside the <code><head></code> tag
- of your HTML document:
- </p>
-
-<pre class="javascript">
-<script type="text/javascript" src="/path/to/jquery-latest.js"></script>
-<script type="text/javascript" src="/path/to/jquery.tablesorter.js"></script>
-</pre>
-
-
- <p>tablesorter works on standard HTML tables. You must include THEAD and TBODY tags:</p>
-
- <pre class="html">
-<table id="myTable" class="tablesorter">
-<thead>
-<tr>
- <th>Last Name</th>
- <th>First Name</th>
- <th>Email</th>
- <th>Due</th>
- <th>Web Site</th>
-</tr>
-</thead>
-<tbody>
-<tr>
- <td>Smith</td>
- <td>John</td>
- <td>jsmith at gmail.com</td>
- <td>$50.00</td>
- <td>http://www.jsmith.com</td>
-</tr>
-<tr>
- <td>Bach</td>
- <td>Frank</td>
- <td>fbach at yahoo.com</td>
- <td>$50.00</td>
- <td>http://www.frank.com</td>
-</tr>
-<tr>
- <td>Doe</td>
- <td>Jason</td>
- <td>jdoe at hotmail.com</td>
- <td>$100.00</td>
- <td>http://www.jdoe.com</td>
-</tr>
-<tr>
- <td>Conway</td>
- <td>Tim</td>
- <td>tconway at earthlink.net</td>
- <td>$50.00</td>
- <td>http://www.timconway.com</td>
-</tr>
-</tbody>
-</table>
- </pre>
-
-
- <p>Start by telling tablesorter to sort your table when the document is loaded:</p>
-
-
-
-
- <pre class="javascript">
-$(document).ready(function()
- {
- $("#myTable").tablesorter();
- }
-);
- </pre>
-
- <p>
- Click on the headers and you'll see that your table is now sortable! You can
- also pass in configuration options when you initialize the table. This tells
- tablesorter to sort on the first and second column in ascending order.
- </p>
-
-
-
- <pre class="javascript">
-$(document).ready(function()
- {
- $("#myTable").tablesorter( {sortList: [[0,0], [1,0]]} );
- }
-);
- </pre>
-
- <p class="tip">
- <em>NOTE!</em> tablesorter will auto-detect most data types including numbers, dates, ip-adresses for more information see <a href="#Examples">Examples</a>
- </p>
-
-
-
-
-
- <a name="Examples"></a>
- <h1>Examples</h1>
- <p>
- These examples will show what's possible with tablesorter. You need Javascript enabled to
- run these samples, just like you and your users will need Javascript enabled to use tablesorter.
- </p>
-
- <strong>Basic</strong>
- <ul>
- <li><a href="example-option-sort-list.html">Set a initial sorting order using options</a></li>
- <li><a href="example-option-digits.html">Dealing with digits!</a></li>
- <li><a href="example-options-headers.html">Disable header using options</a></li>
- <li><a href="example-trigger-sort.html">Sort table using a link outside the table</a></li>
- <li><a href="example-option-sort-force.html">Force a default sorting order</a></li>
- <li><a href="example-option-sort-key.html">Change the default multi-sorting key</a></li>
- </ul>
- <strong>Metadata - setting inline options</strong>
- <ul>
- <li><a href="example-meta-sort-list.html">Set a initial sorting order using metadata</a></li>
- <li><a href="example-meta-headers.html">Disable header using metadata</a></li>
- <li><a href="example-meta-parsers.html">Setting column parser using metadata</a></li>
- </ul>
-
- <strong>Advanced</strong>
- <ul>
- <li><a href="example-triggers.html">Triggers sortEnd and sortStart(Displaying sorting progress)</a></li>
- <li><a href="example-ajax.html">Appending table data with ajax</a></li>
- <li><a href="example-empty-table.html">Initializing tablesorter on a empty table</a></li>
- <li><a href="example-option-text-extraction.html">Dealing with markup inside cells</a></li>
- <li><a href="example-extending-defaults.html">Extending default options</a></li>
- <li><a href="example-option-debug.html">Enableing debug mode</a></li>
- <li><a href="example-parsers.html">Parser, writing your own</a></li>
- <li><a href="example-widgets.html">Widgets, writing your own</a></li>
- </ul>
-
- <strong>Companion plugins</strong>
- <ul>
- <li><a href="example-pager.html">Pager plugin</a></li>
- </ul>
-
-
-
-
-
-
- <a name="Configuration"></a>
- <h1>Configuration</h1>
-
- <p>
- tablesorter has many options you can pass in at initialization to achieve different effects:
- </p>
-
-
-
- <table id="options" class="tablesorter" border="0" cellpadding="0" cellspacing="1">
- <thead>
- <tr>
- <th>Property</th>
- <th>Type</th>
- <th>Default</th>
- <th>Description</th>
- <th>Link</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>sortList</td>
- <td>Array</td>
- <td>null</td>
- <td>An array of instructions for per-column sorting and direction in the format: <code>[[columnIndex, sortDirection], ... ]</code> where columnIndex is a zero-based index for your columns left-to-right and sortDirection is 0 for Ascending and 1 for Descending. A valid argument that sorts ascending first by column 1 and then column 2 looks like: <code>[[0,0],[1,0]]</code></td>
- <td><a href="example-option-sort-list.html">Example</a></td>
- </tr>
- <!--
- <tr>
- <td>sortInitialOrder</td>
- <td>String</td>
- <td>asc</td>
- <td>When clicking the header for the first time, the direction it sorts. Valid arguments are "asc" for Ascending or "desc" for Descending.</td>
- <td><a href="example-option-sort-order.html">Example</a></td>
- </tr>
- -->
- <tr>
- <td>sortMultiSortKey</td>
- <td>String</td>
- <td>shiftKey</td>
- <td>The key used to select more than one column for multi-column sorting. Defaults to the shift key. Other options might be ctrlKey, altKey. <br/>Reference: <a class="external" href="http://developer.mozilla.org/en/docs/DOM:event#Properties">http://developer.mozilla.org/en/docs/DOM:event#Properties</a></td>
-
- <td><a href="example-option-sort-key.html">Example</a></td>
- </tr>
- <tr>
- <td>textExtraction</td>
- <td>String Or Function</td>
- <td>simple</td>
- <td>
- Defines which method is used to extract data from a table cell for sorting.
- Built-in options include "simple" and "complex". Use complex if you have data marked up
- inside of a table cell like: <code><td><strong><em>123 Main Street</em></strong></td></code>.
- Complex can be slow in large tables so consider writing your own text extraction function "myTextExtraction" which you define like:
-<pre class="javascript">
-var myTextExtraction = function(node)
-{
- // extract data from markup and return it
- return node.childNodes[0].childNodes[0].innerHTML;
-}
-$(document).ready(function()
- {
- $("#myTable").tableSorter( {textExtraction: myTextExtraction} );
- }
-);
-</pre>
-
- tablesorter will pass a jQuery object containing the contents of the current cell for you to parse and return. Thanks to Josh Nathanson for the examples.
- </td>
- <td><a href="example-option-text-extraction.html">Example</a></td>
- </tr>
- <tr>
- <td>headers</td>
- <td>Object</td>
- <td>null</td>
- <td>
- An object of instructions for per-column controls in the format: <code>headers: { 0: { option: setting }, ... }</code> For example, to disable
- sorting on the first two columns of a table: <code>headers: { 0: { sorter: false}, 1: {sorter: false} }</code>
- </td>
- <td><a href="example-options-headers.html">Example</a></td>
- </tr>
- <tr>
- <td>sortForce</td>
- <td>Array</td>
- <td>null</td>
- <td>Use to add an additional forced sort that will be appended to the dynamic selections by the user. For example, can be used to sort people alphabetically after some other user-selected sort that results in rows with the same value like dates or money due. It can help prevent data from appearing as though it has a random secondary sort.</td>
- <td><a href="example-option-sort-force.html">Example</a></td>
- </tr>
- <tr>
- <td>widthFixed</td>
- <td>Boolean</td>
- <td>false</td>
- <td>Indicates if tablesorter should apply fixed widths to the table columns. This is useful for the Pager companion. Requires the <a href="#Download-Addons">jQuery dimension plugin</a> to work.</a></td>
- <td><a href="example-pager.html">Example</a></td>
- </tr>
- <tr>
- <td>cancelSelection</td>
- <td>Boolean</td>
- <td>true</td>
- <td>Indicates if tablesorter should disable selection of text in the table header (TH). Makes header behave more like a button.</td>
- <td></td>
- </tr>
- <tr>
- <td>cssHeader</td>
- <td>String</td>
- <td>"header"</td>
- <td>The CSS style used to style the header in its unsorted state. Example from the blue skin:
-<pre class="css">
-th.header {
- background-image: url(../img/small.gif);
- cursor: pointer;
- font-weight: bold;
- background-repeat: no-repeat;
- background-position: center left;
- padding-left: 20px;
- border-right: 1px solid #dad9c7;
- margin-left: -1px;
-}
-</pre>
- </td>
- <td></td>
- </tr>
- <tr>
- <td>cssAsc</td>
- <td>String</td>
- <td>"headerSortUp"</td>
- <td>The CSS style used to style the header when sorting ascending. Example from the blue skin:
-<pre class="css">
-th.headerSortUp {
- background-image: url(../img/small_asc.gif);
- background-color: #3399FF;
-}
-</pre>
- </td>
- <td></td>
- </tr>
- <tr>
- <td>cssDesc</td>
- <td>String</td>
- <td>"headerSortDown"</td>
- <td>The CSS style used to style the header when sorting descending. Example from the blue skin:
-<pre class="css">
-th.headerSortDown {
- background-image: url(../img/small_desc.gif);
- background-color: #3399FF;
-}
-</pre>
- </td>
- <td></td>
- </tr>
- <tr>
- <td>debug</td>
- <td>Boolean</td>
- <td>false</td>
- <td>
- Boolean flag indicating if tablesorter should display debuging information usefull for development.
- </td>
- <td><a href="example-option-debug.html">Example</a></td>
- </tr>
- </tbody>
- </table>
-
-
-
-<a name="Download"></a>
- <h1>Download</h1>
-
- <p><strong>Full release</strong> - Plugin, Documentation, Add-ons, Themes <a href="../jquery.tablesorter.zip">jquery.tablesorter.zip</a></p>
-
-
- <p><strong>Pick n choose</strong> - Place at least the required files in a directory on your webserver that is accessible to a web browser. Record this location.</p>
-
- <strong id="Download-Required">Required:</strong>
- <ul>
- <li><a class="external" href="http://docs.jquery.com/Downloading_jQuery#Download_jQuery">jQuery</a> (1.2.1 or higher)</li>
- <li><a href="../jquery.tablesorter.min.js">jquery.tablesorter.min.js</a> (12kb, Minified for production)</li>
- </ul>
-
- <strong id="Download-Addons">Optional/Add-Ons:</strong>
- <ul>
- <li><a class="external" href="http://jquery.com/dev/svn/trunk/plugins/metadata/lib/jQuery/metadata.js?format=raw">metadata.js</a> (3,7kb <strong>Required for setting <a href="#Examples">inline options</a></strong>)</li>
- <!--
- <li><a class="external" href="http://dev.jquery.com/browser/trunk/plugins/dimensions/jquery.dimensions.
-.js?format=raw">jquery.dimensions.pack.js</a> (5,1kb, <a href="http://dean.edwards.name/packer/" class="external">packed</a>, for production. <strong>Required: for the <a href="example-pager.html">tablesorter pagination plugin</a></strong>)</li>
- -->
- <li><a href="../jquery.tablesorter.js">jquery.tablesorter.js</a> (17,7kb, for development)</li>
- <li><a href="../addons/pager/jquery.tablesorter.pager.js">jquery.tablesorter.pager.js</a> (3,6kb, <a href="example-pager.html">tablesorter pagination plugin</a>)</li>
- </ul>
-
- <strong id="Download-Widgets">Widgets:</strong>
- <ul>
- <li><a class="external" href="http://www.jdempster.com/category/code/jquery/tablesortercookiewidget/">Cookie Widget</a>, By <a class="external" href="http://www.jdempster.com/">James Dempster</a></li>
- </ul>
-
- <strong id="Download-Themes">Themes:</strong>
- <ul>
- <li><a href="../themes/green/green.zip">Green Skin</a> - Images and CSS styles for green themed headers</li>
- <li><a href="../themes/blue/blue.zip">Blue Skin</a> - Images and CSS styles for blue themed headers (as seen in the examples)</li>
- </ul>
-
- <a name="Compatibility"></a>
- <h1>Browser Compatibility</h1>
-
- <p>tablesorter has been tested successfully in the following browsers with Javascript enabled:</p>
- <ul>
- <li>Firefox 2+</li>
- <li>Internet Explorer 6+</li>
- <li>Safari 2+</li>
- <li>Opera 9+</li>
- <li>Konqueror</li>
- </ul>
-
- <p><a class="external" href="http://docs.jquery.com/Browser_Compatibility">jQuery Browser Compatibility</a></p>
-
-
-
-
-<a name="Support"></a>
- <h1>Support</h1>
- <p>
- Support is available through the
- <a class="external" href="http://jquery.com/discuss/">jQuery Mailing List</a>.
- </p>
- <p>Access to the jQuery Mailing List is also available through <a class="external" href="http://www.nabble.com/JQuery-f15494.html">Nabble Forums</a>.</p>
-
-
- <a name="Credits"></a>
- <h1>Credits</h1>
- <p>
- Written by <a class="external" href="http://lovepeacenukes.com">Christian Bach</a>.
- </p>
- <p>
- Documentation written by <a class="external" href="http://www.ghidinelli.com">Brian Ghidinelli</a>,
- based on <a class="external" href="http://malsup.com/jquery/">Mike Alsup's</a> great documention.
- </p>
- <p>
- <a class="external" href="http://ejohn.org">John Resig</a> for the fantastic <a class="external" href="http://jquery.com">jQuery</a>
- </p>
-</div>
-
-<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
-<script type="text/javascript">
-_uacct = "UA-2189649-2";
-urchinTracker();
-</script>
-</body>
-</html>
-
diff --git a/tablesorter/jquery.tablesorter.js b/tablesorter/jquery.tablesorter.js
deleted file mode 100644
index 9b58731..0000000
--- a/tablesorter/jquery.tablesorter.js
+++ /dev/null
@@ -1,1031 +0,0 @@
-/*
- *
- * TableSorter 2.0 - Client-side table sorting with ease!
- * Version 2.0.5b
- * @requires jQuery v1.2.3
- *
- * Copyright (c) 2007 Christian Bach
- * Examples and docs at: http://tablesorter.com
- * Dual licensed under the MIT and GPL licenses:
- * http://www.opensource.org/licenses/mit-license.php
- * http://www.gnu.org/licenses/gpl.html
- *
- */
-/**
- *
- * @description Create a sortable table with multi-column sorting capabilitys
- *
- * @example $('table').tablesorter();
- * @desc Create a simple tablesorter interface.
- *
- * @example $('table').tablesorter({ sortList:[[0,0],[1,0]] });
- * @desc Create a tablesorter interface and sort on the first and secound column column headers.
- *
- * @example $('table').tablesorter({ headers: { 0: { sorter: false}, 1: {sorter: false} } });
- *
- * @desc Create a tablesorter interface and disableing the first and second column headers.
- *
- *
- * @example $('table').tablesorter({ headers: { 0: {sorter:"integer"}, 1: {sorter:"currency"} } });
- *
- * @desc Create a tablesorter interface and set a column parser for the first
- * and second column.
- *
- *
- * @param Object
- * settings An object literal containing key/value pairs to provide
- * optional settings.
- *
- *
- * @option String cssHeader (optional) A string of the class name to be appended
- * to sortable tr elements in the thead of the table. Default value:
- * "header"
- *
- * @option String cssAsc (optional) A string of the class name to be appended to
- * sortable tr elements in the thead on a ascending sort. Default value:
- * "headerSortUp"
- *
- * @option String cssDesc (optional) A string of the class name to be appended
- * to sortable tr elements in the thead on a descending sort. Default
- * value: "headerSortDown"
- *
- * @option String sortInitialOrder (optional) A string of the inital sorting
- * order can be asc or desc. Default value: "asc"
- *
- * @option String sortMultisortKey (optional) A string of the multi-column sort
- * key. Default value: "shiftKey"
- *
- * @option String textExtraction (optional) A string of the text-extraction
- * method to use. For complex html structures inside td cell set this
- * option to "complex", on large tables the complex option can be slow.
- * Default value: "simple"
- *
- * @option Object headers (optional) An array containing the forces sorting
- * rules. This option let's you specify a default sorting rule. Default
- * value: null
- *
- * @option Array sortList (optional) An array containing the forces sorting
- * rules. This option let's you specify a default sorting rule. Default
- * value: null
- *
- * @option Array sortForce (optional) An array containing forced sorting rules.
- * This option let's you specify a default sorting rule, which is
- * prepended to user-selected rules. Default value: null
- *
- * @option Boolean sortLocaleCompare (optional) Boolean flag indicating whatever
- * to use String.localeCampare method or not. Default set to true.
- *
- *
- * @option Array sortAppend (optional) An array containing forced sorting rules.
- * This option let's you specify a default sorting rule, which is
- * appended to user-selected rules. Default value: null
- *
- * @option Boolean widthFixed (optional) Boolean flag indicating if tablesorter
- * should apply fixed widths to the table columns. This is usefull when
- * using the pager companion plugin. This options requires the dimension
- * jquery plugin. Default value: false
- *
- * @option Boolean cancelSelection (optional) Boolean flag indicating if
- * tablesorter should cancel selection of the table headers text.
- * Default value: true
- *
- * @option Boolean debug (optional) Boolean flag indicating if tablesorter
- * should display debuging information usefull for development.
- *
- * @type jQuery
- *
- * @name tablesorter
- *
- * @cat Plugins/Tablesorter
- *
- * @author Christian Bach/christian.bach at polyester.se
- */
-
-(function ($) {
- $.extend({
- tablesorter: new
- function () {
-
- var parsers = [],
- widgets = [];
-
- this.defaults = {
- cssHeader: "header",
- cssAsc: "headerSortUp",
- cssDesc: "headerSortDown",
- cssChildRow: "expand-child",
- sortInitialOrder: "asc",
- sortMultiSortKey: "shiftKey",
- sortForce: null,
- sortAppend: null,
- sortLocaleCompare: true,
- textExtraction: "simple",
- parsers: {}, widgets: [],
- widgetZebra: {
- css: ["even", "odd"]
- }, headers: {}, widthFixed: false,
- cancelSelection: true,
- sortList: [],
- headerList: [],
- dateFormat: "us",
- decimal: '/\.|\,/g',
- onRenderHeader: null,
- selectorHeaders: 'thead th',
- debug: false
- };
-
- /* debuging utils */
-
- function benchmark(s, d) {
- log(s + "," + (new Date().getTime() - d.getTime()) + "ms");
- }
-
- this.benchmark = benchmark;
-
- function log(s) {
- if (typeof console != "undefined" && typeof console.debug != "undefined") {
- console.log(s);
- } else {
- alert(s);
- }
- }
-
- /* parsers utils */
-
- function buildParserCache(table, $headers) {
-
- if (table.config.debug) {
- var parsersDebug = "";
- }
-
- if (table.tBodies.length == 0) return; // In the case of empty tables
- var rows = table.tBodies[0].rows;
-
- if (rows[0]) {
-
- var list = [],
- cells = rows[0].cells,
- l = cells.length;
-
- for (var i = 0; i < l; i++) {
-
- var p = false;
-
- if ($.metadata && ($($headers[i]).metadata() && $($headers[i]).metadata().sorter)) {
-
- p = getParserById($($headers[i]).metadata().sorter);
-
- } else if ((table.config.headers[i] && table.config.headers[i].sorter)) {
-
- p = getParserById(table.config.headers[i].sorter);
- }
- if (!p) {
-
- p = detectParserForColumn(table, rows, -1, i);
- }
-
- if (table.config.debug) {
- parsersDebug += "column:" + i + " parser:" + p.id + "\n";
- }
-
- list.push(p);
- }
- }
-
- if (table.config.debug) {
- log(parsersDebug);
- }
-
- return list;
- };
-
- function detectParserForColumn(table, rows, rowIndex, cellIndex) {
- var l = parsers.length,
- node = false,
- nodeValue = false,
- keepLooking = true;
- while (nodeValue == '' && keepLooking) {
- rowIndex++;
- if (rows[rowIndex]) {
- node = getNodeFromRowAndCellIndex(rows, rowIndex, cellIndex);
- nodeValue = trimAndGetNodeText(table.config, node);
- if (table.config.debug) {
- log('Checking if value was empty on row:' + rowIndex);
- }
- } else {
- keepLooking = false;
- }
- }
- for (var i = 1; i < l; i++) {
- if (parsers[i].is(nodeValue, table, node)) {
- return parsers[i];
- }
- }
- // 0 is always the generic parser (text)
- return parsers[0];
- }
-
- function getNodeFromRowAndCellIndex(rows, rowIndex, cellIndex) {
- return rows[rowIndex].cells[cellIndex];
- }
-
- function trimAndGetNodeText(config, node) {
- return $.trim(getElementText(config, node));
- }
-
- function getParserById(name) {
- var l = parsers.length;
- for (var i = 0; i < l; i++) {
- if (parsers[i].id.toLowerCase() == name.toLowerCase()) {
- return parsers[i];
- }
- }
- return false;
- }
-
- /* utils */
-
- function buildCache(table) {
-
- if (table.config.debug) {
- var cacheTime = new Date();
- }
-
- var totalRows = (table.tBodies[0] && table.tBodies[0].rows.length) || 0,
- totalCells = (table.tBodies[0].rows[0] && table.tBodies[0].rows[0].cells.length) || 0,
- parsers = table.config.parsers,
- cache = {
- row: [],
- normalized: []
- };
-
- for (var i = 0; i < totalRows; ++i) {
-
- /** Add the table data to main data array */
- var c = $(table.tBodies[0].rows[i]),
- cols = [];
-
- // if this is a child row, add it to the last row's children and
- // continue to the next row
- if (c.hasClass(table.config.cssChildRow)) {
- cache.row[cache.row.length - 1] = cache.row[cache.row.length - 1].add(c);
- // go to the next for loop
- continue;
- }
-
- cache.row.push(c);
-
- for (var j = 0; j < totalCells; ++j) {
- cols.push(parsers[j].format(getElementText(table.config, c[0].cells[j]), table, c[0].cells[j]));
- }
-
- cols.push(cache.normalized.length); // add position for rowCache
- cache.normalized.push(cols);
- cols = null;
- };
-
- if (table.config.debug) {
- benchmark("Building cache for " + totalRows + " rows:", cacheTime);
- }
-
- return cache;
- };
-
- function getElementText(config, node) {
-
- var text = "";
-
- if (!node) return "";
-
- if (!config.supportsTextContent) config.supportsTextContent = node.textContent || false;
-
- if (config.textExtraction == "simple") {
- if (config.supportsTextContent) {
- text = node.textContent;
- } else {
- if (node.childNodes[0] && node.childNodes[0].hasChildNodes()) {
- text = node.childNodes[0].innerHTML;
- } else {
- text = node.innerHTML;
- }
- }
- } else {
- if (typeof(config.textExtraction) == "function") {
- text = config.textExtraction(node);
- } else {
- text = $(node).text();
- }
- }
- return text;
- }
-
- function appendToTable(table, cache) {
-
- if (table.config.debug) {
- var appendTime = new Date()
- }
-
- var c = cache,
- r = c.row,
- n = c.normalized,
- totalRows = n.length,
- checkCell = (n[0].length - 1),
- tableBody = $(table.tBodies[0]),
- rows = [];
-
-
- for (var i = 0; i < totalRows; i++) {
- var pos = n[i][checkCell];
-
- rows.push(r[pos]);
-
- if (!table.config.appender) {
-
- //var o = ;
- var l = r[pos].length;
- for (var j = 0; j < l; j++) {
- tableBody[0].appendChild(r[pos][j]);
- }
-
- //
- }
- }
-
-
-
- if (table.config.appender) {
-
- table.config.appender(table, rows);
- }
-
- rows = null;
-
- if (table.config.debug) {
- benchmark("Rebuilt table:", appendTime);
- }
-
- // apply table widgets
- applyWidget(table);
-
- // trigger sortend
- setTimeout(function () {
- $(table).trigger("sortEnd");
- }, 0);
-
- };
-
- function buildHeaders(table) {
-
- if (table.config.debug) {
- var time = new Date();
- }
-
- var meta = ($.metadata) ? true : false;
-
- var header_index = computeTableHeaderCellIndexes(table);
-
- $tableHeaders = $(table.config.selectorHeaders, table).each(function (index) {
-
- this.column = header_index[this.parentNode.rowIndex + "-" + this.cellIndex];
- // this.column = index;
- this.order = formatSortingOrder(table.config.sortInitialOrder);
-
-
- this.count = this.order;
-
- if (checkHeaderMetadata(this) || checkHeaderOptions(table, index)) this.sortDisabled = true;
- if (checkHeaderOptionsSortingLocked(table, index)) this.order = this.lockedOrder = checkHeaderOptionsSortingLocked(table, index);
-
- if (!this.sortDisabled) {
- var $th = $(this).addClass(table.config.cssHeader);
- if (table.config.onRenderHeader) table.config.onRenderHeader.apply($th);
- }
-
- // add cell to headerList
- table.config.headerList[index] = this;
- });
-
- if (table.config.debug) {
- benchmark("Built headers:", time);
- log($tableHeaders);
- }
-
- return $tableHeaders;
-
- };
-
- // from:
- // http://www.javascripttoolbox.com/lib/table/examples.php
- // http://www.javascripttoolbox.com/temp/table_cellindex.html
-
-
- function computeTableHeaderCellIndexes(t) {
- var matrix = [];
- var lookup = {};
- var thead = t.getElementsByTagName('THEAD')[0];
- var trs = thead.getElementsByTagName('TR');
-
- for (var i = 0; i < trs.length; i++) {
- var cells = trs[i].cells;
- for (var j = 0; j < cells.length; j++) {
- var c = cells[j];
-
- var rowIndex = c.parentNode.rowIndex;
- var cellId = rowIndex + "-" + c.cellIndex;
- var rowSpan = c.rowSpan || 1;
- var colSpan = c.colSpan || 1
- var firstAvailCol;
- if (typeof(matrix[rowIndex]) == "undefined") {
- matrix[rowIndex] = [];
- }
- // Find first available column in the first row
- for (var k = 0; k < matrix[rowIndex].length + 1; k++) {
- if (typeof(matrix[rowIndex][k]) == "undefined") {
- firstAvailCol = k;
- break;
- }
- }
- lookup[cellId] = firstAvailCol;
- for (var k = rowIndex; k < rowIndex + rowSpan; k++) {
- if (typeof(matrix[k]) == "undefined") {
- matrix[k] = [];
- }
- var matrixrow = matrix[k];
- for (var l = firstAvailCol; l < firstAvailCol + colSpan; l++) {
- matrixrow[l] = "x";
- }
- }
- }
- }
- return lookup;
- }
-
- function checkCellColSpan(table, rows, row) {
- var arr = [],
- r = table.tHead.rows,
- c = r[row].cells;
-
- for (var i = 0; i < c.length; i++) {
- var cell = c[i];
-
- if (cell.colSpan > 1) {
- arr = arr.concat(checkCellColSpan(table, headerArr, row++));
- } else {
- if (table.tHead.length == 1 || (cell.rowSpan > 1 || !r[row + 1])) {
- arr.push(cell);
- }
- // headerArr[row] = (i+row);
- }
- }
- return arr;
- };
-
- function checkHeaderMetadata(cell) {
- if (($.metadata) && ($(cell).metadata().sorter === false)) {
- return true;
- };
- return false;
- }
-
- function checkHeaderOptions(table, i) {
- if ((table.config.headers[i]) && (table.config.headers[i].sorter === false)) {
- return true;
- };
- return false;
- }
-
- function checkHeaderOptionsSortingLocked(table, i) {
- if ((table.config.headers[i]) && (table.config.headers[i].lockedOrder)) return table.config.headers[i].lockedOrder;
- return false;
- }
-
- function applyWidget(table) {
- var c = table.config.widgets;
- var l = c.length;
- for (var i = 0; i < l; i++) {
-
- getWidgetById(c[i]).format(table);
- }
-
- }
-
- function getWidgetById(name) {
- var l = widgets.length;
- for (var i = 0; i < l; i++) {
- if (widgets[i].id.toLowerCase() == name.toLowerCase()) {
- return widgets[i];
- }
- }
- };
-
- function formatSortingOrder(v) {
- if (typeof(v) != "Number") {
- return (v.toLowerCase() == "desc") ? 1 : 0;
- } else {
- return (v == 1) ? 1 : 0;
- }
- }
-
- function isValueInArray(v, a) {
- var l = a.length;
- for (var i = 0; i < l; i++) {
- if (a[i][0] == v) {
- return true;
- }
- }
- return false;
- }
-
- function setHeadersCss(table, $headers, list, css) {
- // remove all header information
- $headers.removeClass(css[0]).removeClass(css[1]);
-
- var h = [];
- $headers.each(function (offset) {
- if (!this.sortDisabled) {
- h[this.column] = $(this);
- }
- });
-
- var l = list.length;
- for (var i = 0; i < l; i++) {
- h[list[i][0]].addClass(css[list[i][1]]);
- }
- }
-
- function fixColumnWidth(table, $headers) {
- var c = table.config;
- if (c.widthFixed) {
- var colgroup = $('<colgroup>');
- $("tr:first td", table.tBodies[0]).each(function () {
- colgroup.append($('<col>').css('width', $(this).width()));
- });
- $(table).prepend(colgroup);
- };
- }
-
- function updateHeaderSortCount(table, sortList) {
- var c = table.config,
- l = sortList.length;
- for (var i = 0; i < l; i++) {
- var s = sortList[i],
- o = c.headerList[s[0]];
- o.count = s[1];
- o.count++;
- }
- }
-
- /* sorting methods */
-
- function multisort(table, sortList, cache) {
-
- if (table.config.debug) {
- var sortTime = new Date();
- }
-
- var dynamicExp = "var sortWrapper = function(a,b) {",
- l = sortList.length;
-
- // TODO: inline functions.
- for (var i = 0; i < l; i++) {
-
- var c = sortList[i][0];
- var order = sortList[i][1];
- // var s = (getCachedSortType(table.config.parsers,c) == "text") ?
- // ((order == 0) ? "sortText" : "sortTextDesc") : ((order == 0) ?
- // "sortNumeric" : "sortNumericDesc");
- // var s = (table.config.parsers[c].type == "text") ? ((order == 0)
- // ? makeSortText(c) : makeSortTextDesc(c)) : ((order == 0) ?
- // makeSortNumeric(c) : makeSortNumericDesc(c));
- var s = (table.config.parsers[c].type == "text") ? ((order == 0) ? makeSortFunction("text", "asc", c) : makeSortFunction("text", "desc", c)) : ((order == 0) ? makeSortFunction("numeric", "asc", c) : makeSortFunction("numeric", "desc", c));
- var e = "e" + i;
-
- dynamicExp += "var " + e + " = " + s; // + "(a[" + c + "],b[" + c
- // + "]); ";
- dynamicExp += "if(" + e + ") { return " + e + "; } ";
- dynamicExp += "else { ";
-
- }
-
- // if value is the same keep orignal order
- var orgOrderCol = cache.normalized[0].length - 1;
- dynamicExp += "return a[" + orgOrderCol + "]-b[" + orgOrderCol + "];";
-
- for (var i = 0; i < l; i++) {
- dynamicExp += "}; ";
- }
-
- dynamicExp += "return 0; ";
- dynamicExp += "}; ";
-
- if (table.config.debug) {
- benchmark("Evaling expression:" + dynamicExp, new Date());
- }
-
- eval(dynamicExp);
-
- cache.normalized.sort(sortWrapper);
-
- if (table.config.debug) {
- benchmark("Sorting on " + sortList.toString() + " and dir " + order + " time:", sortTime);
- }
-
- return cache;
- };
-
- function makeSortFunction(type, direction, index) {
- var a = "a[" + index + "]",
- b = "b[" + index + "]";
- if (type == 'text' && direction == 'asc') {
- return "(" + a + " == " + b + " ? 0 : (" + a + " === null ? Number.POSITIVE_INFINITY : (" + b + " === null ? Number.NEGATIVE_INFINITY : (" + a + " < " + b + ") ? -1 : 1 )));";
- } else if (type == 'text' && direction == 'desc') {
- return "(" + a + " == " + b + " ? 0 : (" + a + " === null ? Number.POSITIVE_INFINITY : (" + b + " === null ? Number.NEGATIVE_INFINITY : (" + b + " < " + a + ") ? -1 : 1 )));";
- } else if (type == 'numeric' && direction == 'asc') {
- return "(" + a + " === null && " + b + " === null) ? 0 :(" + a + " === null ? Number.POSITIVE_INFINITY : (" + b + " === null ? Number.NEGATIVE_INFINITY : " + a + " - " + b + "));";
- } else if (type == 'numeric' && direction == 'desc') {
- return "(" + a + " === null && " + b + " === null) ? 0 :(" + a + " === null ? Number.POSITIVE_INFINITY : (" + b + " === null ? Number.NEGATIVE_INFINITY : " + b + " - " + a + "));";
- }
- };
-
- function makeSortText(i) {
- return "((a[" + i + "] < b[" + i + "]) ? -1 : ((a[" + i + "] > b[" + i + "]) ? 1 : 0));";
- };
-
- function makeSortTextDesc(i) {
- return "((b[" + i + "] < a[" + i + "]) ? -1 : ((b[" + i + "] > a[" + i + "]) ? 1 : 0));";
- };
-
- function makeSortNumeric(i) {
- return "a[" + i + "]-b[" + i + "];";
- };
-
- function makeSortNumericDesc(i) {
- return "b[" + i + "]-a[" + i + "];";
- };
-
- function sortText(a, b) {
- if (table.config.sortLocaleCompare) return a.localeCompare(b);
- return ((a < b) ? -1 : ((a > b) ? 1 : 0));
- };
-
- function sortTextDesc(a, b) {
- if (table.config.sortLocaleCompare) return b.localeCompare(a);
- return ((b < a) ? -1 : ((b > a) ? 1 : 0));
- };
-
- function sortNumeric(a, b) {
- return a - b;
- };
-
- function sortNumericDesc(a, b) {
- return b - a;
- };
-
- function getCachedSortType(parsers, i) {
- return parsers[i].type;
- }; /* public methods */
- this.construct = function (settings) {
- return this.each(function () {
- // if no thead or tbody quit.
- if (!this.tHead || !this.tBodies) return;
- // declare
- var $this, $document, $headers, cache, config, shiftDown = 0,
- sortOrder;
- // new blank config object
- this.config = {};
- // merge and extend.
- config = $.extend(this.config, $.tablesorter.defaults, settings);
- // store common expression for speed
- $this = $(this);
- // save the settings where they read
- $.data(this, "tablesorter", config);
- // build headers
- $headers = buildHeaders(this);
- // try to auto detect column type, and store in tables config
- this.config.parsers = buildParserCache(this, $headers);
- // build the cache for the tbody cells
- cache = buildCache(this);
- // get the css class names, could be done else where.
- var sortCSS = [config.cssDesc, config.cssAsc];
- // fixate columns if the users supplies the fixedWidth option
- fixColumnWidth(this);
- // apply event handling to headers
- // this is to big, perhaps break it out?
- $headers.click(
-
- function (e) {
- var totalRows = ($this[0].tBodies[0] && $this[0].tBodies[0].rows.length) || 0;
- if (!this.sortDisabled && totalRows > 0) {
- // Only call sortStart if sorting is
- // enabled.
- $this.trigger("sortStart");
- // store exp, for speed
- var $cell = $(this);
- // get current column index
- var i = this.column;
- // get current column sort order
- this.order = this.count++ % 2;
- // always sort on the locked order.
- if(this.lockedOrder) this.order = this.lockedOrder;
-
- // user only whants to sort on one
- // column
- if (!e[config.sortMultiSortKey]) {
- // flush the sort list
- config.sortList = [];
- if (config.sortForce != null) {
- var a = config.sortForce;
- for (var j = 0; j < a.length; j++) {
- if (a[j][0] != i) {
- config.sortList.push(a[j]);
- }
- }
- }
- // add column to sort list
- config.sortList.push([i, this.order]);
- // multi column sorting
- } else {
- // the user has clicked on an all
- // ready sortet column.
- if (isValueInArray(i, config.sortList)) {
- // revers the sorting direction
- // for all tables.
- for (var j = 0; j < config.sortList.length; j++) {
- var s = config.sortList[j],
- o = config.headerList[s[0]];
- if (s[0] == i) {
- o.count = s[1];
- o.count++;
- s[1] = o.count % 2;
- }
- }
- } else {
- // add column to sort list array
- config.sortList.push([i, this.order]);
- }
- };
- setTimeout(function () {
- // set css for headers
- setHeadersCss($this[0], $headers, config.sortList, sortCSS);
- appendToTable(
- $this[0], multisort(
- $this[0], config.sortList, cache)
- );
- }, 1);
- // stop normal event by returning false
- return false;
- }
- // cancel selection
- }).mousedown(function () {
- if (config.cancelSelection) {
- this.onselectstart = function () {
- return false
- };
- return false;
- }
- });
- // apply easy methods that trigger binded events
- $this.bind("update", function () {
- var me = this;
- setTimeout(function () {
- // rebuild parsers.
- me.config.parsers = buildParserCache(
- me, $headers);
- // rebuild the cache map
- cache = buildCache(me);
- }, 1);
- }).bind("updateCell", function (e, cell) {
- var config = this.config;
- // get position from the dom.
- var pos = [(cell.parentNode.rowIndex - 1), cell.cellIndex];
- // update cache
- cache.normalized[pos[0]][pos[1]] = config.parsers[pos[1]].format(
- getElementText(config, cell), cell);
- }).bind("sorton", function (e, list) {
- $(this).trigger("sortStart");
- config.sortList = list;
- // update and store the sortlist
- var sortList = config.sortList;
- // update header count index
- updateHeaderSortCount(this, sortList);
- // set css for headers
- setHeadersCss(this, $headers, sortList, sortCSS);
- // sort the table and append it to the dom
- appendToTable(this, multisort(this, sortList, cache));
- }).bind("appendCache", function () {
- appendToTable(this, cache);
- }).bind("applyWidgetId", function (e, id) {
- getWidgetById(id).format(this);
- }).bind("applyWidgets", function () {
- // apply widgets
- applyWidget(this);
- });
- if ($.metadata && ($(this).metadata() && $(this).metadata().sortlist)) {
- config.sortList = $(this).metadata().sortlist;
- }
- // if user has supplied a sort list to constructor.
- if (config.sortList.length > 0) {
- $this.trigger("sorton", [config.sortList]);
- }
- // apply widgets
- applyWidget(this);
- });
- };
- this.addParser = function (parser) {
- var l = parsers.length,
- a = true;
- for (var i = 0; i < l; i++) {
- if (parsers[i].id.toLowerCase() == parser.id.toLowerCase()) {
- a = false;
- }
- }
- if (a) {
- parsers.push(parser);
- };
- };
- this.addWidget = function (widget) {
- widgets.push(widget);
- };
- this.formatFloat = function (s) {
- var i = parseFloat(s);
- return (isNaN(i)) ? 0 : i;
- };
- this.formatInt = function (s) {
- var i = parseInt(s);
- return (isNaN(i)) ? 0 : i;
- };
- this.isDigit = function (s, config) {
- // replace all an wanted chars and match.
- return /^[-+]?\d*$/.test($.trim(s.replace(/[,.']/g, '')));
- };
- this.clearTableBody = function (table) {
- if ($.browser.msie) {
- function empty() {
- while (this.firstChild)
- this.removeChild(this.firstChild);
- }
- empty.apply(table.tBodies[0]);
- } else {
- table.tBodies[0].innerHTML = "";
- }
- };
- }
- });
-
- // extend plugin scope
- $.fn.extend({
- tablesorter: $.tablesorter.construct
- });
-
- // make shortcut
- var ts = $.tablesorter;
-
- // add default parsers
- ts.addParser({
- id: "text",
- is: function (s) {
- return true;
- }, format: function (s) {
- return $.trim(s.toLocaleLowerCase());
- }, type: "text"
- });
-
- ts.addParser({
- id: "digit",
- is: function (s, table) {
- var c = table.config;
- return $.tablesorter.isDigit(s, c);
- }, format: function (s) {
- return $.tablesorter.formatFloat(s);
- }, type: "numeric"
- });
-
- ts.addParser({
- id: "currency",
- is: function (s) {
- return /^[£$€?.]/.test(s);
- }, format: function (s) {
- return $.tablesorter.formatFloat(s.replace(new RegExp(/[£$€]/g), ""));
- }, type: "numeric"
- });
-
- ts.addParser({
- id: "ipAddress",
- is: function (s) {
- return /^\d{2,3}[\.]\d{2,3}[\.]\d{2,3}[\.]\d{2,3}$/.test(s);
- }, format: function (s) {
- var a = s.split("."),
- r = "",
- l = a.length;
- for (var i = 0; i < l; i++) {
- var item = a[i];
- if (item.length == 2) {
- r += "0" + item;
- } else {
- r += item;
- }
- }
- return $.tablesorter.formatFloat(r);
- }, type: "numeric"
- });
-
- ts.addParser({
- id: "url",
- is: function (s) {
- return /^(https?|ftp|file):\/\/$/.test(s);
- }, format: function (s) {
- return jQuery.trim(s.replace(new RegExp(/(https?|ftp|file):\/\//), ''));
- }, type: "text"
- });
-
- ts.addParser({
- id: "isoDate",
- is: function (s) {
- return /^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(s);
- }, format: function (s) {
- return $.tablesorter.formatFloat((s != "") ? new Date(s.replace(
- new RegExp(/-/g), "/")).getTime() : "0");
- }, type: "numeric"
- });
-
- ts.addParser({
- id: "percent",
- is: function (s) {
- return /\%$/.test($.trim(s));
- }, format: function (s) {
- return $.tablesorter.formatFloat(s.replace(new RegExp(/%/g), ""));
- }, type: "numeric"
- });
-
- ts.addParser({
- id: "usLongDate",
- is: function (s) {
- return s.match(new RegExp(/^[A-Za-z]{3,10}\.? [0-9]{1,2}, ([0-9]{4}|'?[0-9]{2}) (([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(AM|PM)))$/));
- }, format: function (s) {
- return $.tablesorter.formatFloat(new Date(s).getTime());
- }, type: "numeric"
- });
-
- ts.addParser({
- id: "shortDate",
- is: function (s) {
- return /\d{1,2}[\/\-]\d{1,2}[\/\-]\d{2,4}/.test(s);
- }, format: function (s, table) {
- var c = table.config;
- s = s.replace(/\-/g, "/");
- if (c.dateFormat == "us") {
- // reformat the string in ISO format
- s = s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/, "$3/$1/$2");
- } else if (c.dateFormat == "uk") {
- // reformat the string in ISO format
- s = s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/, "$3/$2/$1");
- } else if (c.dateFormat == "dd/mm/yy" || c.dateFormat == "dd-mm-yy") {
- s = s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{2})/, "$1/$2/$3");
- }
- return $.tablesorter.formatFloat(new Date(s).getTime());
- }, type: "numeric"
- });
- ts.addParser({
- id: "time",
- is: function (s) {
- return /^(([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(am|pm)))$/.test(s);
- }, format: function (s) {
- return $.tablesorter.formatFloat(new Date("2000/01/01 " + s).getTime());
- }, type: "numeric"
- });
- ts.addParser({
- id: "metadata",
- is: function (s) {
- return false;
- }, format: function (s, table, cell) {
- var c = table.config,
- p = (!c.parserMetadataName) ? 'sortValue' : c.parserMetadataName;
- return $(cell).metadata()[p];
- }, type: "numeric"
- });
- // add default widgets
- ts.addWidget({
- id: "zebra",
- format: function (table) {
- if (table.config.debug) {
- var time = new Date();
- }
- var $tr, row = -1,
- odd;
- // loop through the visible rows
- $("tr:visible", table.tBodies[0]).each(function (i) {
- $tr = $(this);
- // style children rows the same way the parent
- // row was styled
- if (!$tr.hasClass(table.config.cssChildRow)) row++;
- odd = (row % 2 == 0);
- $tr.removeClass(
- table.config.widgetZebra.css[odd ? 0 : 1]).addClass(
- table.config.widgetZebra.css[odd ? 1 : 0])
- });
- if (table.config.debug) {
- $.tablesorter.benchmark("Applying Zebra widget", time);
- }
- }
- });
-})(jQuery);
\ No newline at end of file
diff --git a/tablesorter/themes/blue/asc.gif b/tablesorter/themes/blue/asc.gif
deleted file mode 100644
index 7415786..0000000
Binary files a/tablesorter/themes/blue/asc.gif and /dev/null differ
diff --git a/tablesorter/themes/blue/bg.gif b/tablesorter/themes/blue/bg.gif
deleted file mode 100644
index fac668f..0000000
Binary files a/tablesorter/themes/blue/bg.gif and /dev/null differ
diff --git a/tablesorter/themes/blue/desc.gif b/tablesorter/themes/blue/desc.gif
deleted file mode 100644
index 3b30b3c..0000000
Binary files a/tablesorter/themes/blue/desc.gif and /dev/null differ
diff --git a/tablesorter/themes/blue/style.css b/tablesorter/themes/blue/style.css
deleted file mode 100644
index eb41f70..0000000
--- a/tablesorter/themes/blue/style.css
+++ /dev/null
@@ -1,39 +0,0 @@
-/* tables */
-table.tablesorter {
- font-family:arial;
- background-color: #CDCDCD;
- margin:10px 0pt 15px;
- font-size: 8pt;
- width: 100%;
- text-align: left;
-}
-table.tablesorter thead tr th, table.tablesorter tfoot tr th {
- background-color: #e6EEEE;
- border: 1px solid #FFF;
- font-size: 8pt;
- padding: 4px;
-}
-table.tablesorter thead tr .header {
- background-image: url(bg.gif);
- background-repeat: no-repeat;
- background-position: center right;
- cursor: pointer;
-}
-table.tablesorter tbody td {
- color: #3D3D3D;
- padding: 4px;
- background-color: #FFF;
- vertical-align: top;
-}
-table.tablesorter tbody tr.odd td {
- background-color:#F0F0F6;
-}
-table.tablesorter thead tr .headerSortUp {
- background-image: url(asc.gif);
-}
-table.tablesorter thead tr .headerSortDown {
- background-image: url(desc.gif);
-}
-table.tablesorter thead tr .headerSortDown, table.tablesorter thead tr .headerSortUp {
-background-color: #8dbdd8;
-}
diff --git a/tablesorter/themes/green/asc.png b/tablesorter/themes/green/asc.png
deleted file mode 100644
index 66e39ca..0000000
Binary files a/tablesorter/themes/green/asc.png and /dev/null differ
diff --git a/tablesorter/themes/green/bg.png b/tablesorter/themes/green/bg.png
deleted file mode 100644
index ca83716..0000000
Binary files a/tablesorter/themes/green/bg.png and /dev/null differ
diff --git a/tablesorter/themes/green/desc.png b/tablesorter/themes/green/desc.png
deleted file mode 100644
index 431f63a..0000000
Binary files a/tablesorter/themes/green/desc.png and /dev/null differ
diff --git a/tablesorter/themes/green/style.css b/tablesorter/themes/green/style.css
deleted file mode 100644
index 4a54589..0000000
--- a/tablesorter/themes/green/style.css
+++ /dev/null
@@ -1,39 +0,0 @@
-table.tablesorter {
- font-size: 12px;
- background-color: #4D4D4D;
- width: 1024px;
- border: 1px solid #000;
-}
-table.tablesorter th {
- text-align: left;
- padding: 5px;
- background-color: #6E6E6E;
-}
-table.tablesorter td {
- color: #FFF;
- padding: 5px;
-}
-table.tablesorter .even {
- background-color: #3D3D3D;
-}
-table.tablesorter .odd {
- background-color: #6E6E6E;
-}
-table.tablesorter .header {
- background-image: url(bg.png);
- background-repeat: no-repeat;
- border-left: 1px solid #FFF;
- border-right: 1px solid #000;
- border-top: 1px solid #FFF;
- padding-left: 30px;
- padding-top: 8px;
- height: auto;
-}
-table.tablesorter .headerSortUp {
- background-image: url(asc.png);
- background-repeat: no-repeat;
-}
-table.tablesorter .headerSortDown {
- background-image: url(desc.png);
- background-repeat: no-repeat;
-}
\ No newline at end of file
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/jquery-goodies.git
More information about the Pkg-javascript-commits
mailing list