diff --git a/docs/css/jq.css b/docs/css/jq.css index c4050a14..07f126dc 100644 --- a/docs/css/jq.css +++ b/docs/css/jq.css @@ -60,7 +60,7 @@ div.digg {float: right;} #pager-demo button.remove { width: 20px; height: 20px; font-size: 10px; color: #800; } .box { width: 48%; min-width: 300px; float: left; padding: 0 1%; } a.deprecated { color: #a00; } -span.deprecated { background: #a00; color: #fff; padding: 1px 3px; } +span.deprecated,.alert { background: #a00; color: #fff; padding: 1px 3px; } .hidden { display: none; } .results { color: red; } .clear { clear: both; } diff --git a/docs/example-add-rows.html b/docs/example-add-rows.html index 25bf4686..6d2c8476 100644 --- a/docs/example-add-rows.html +++ b/docs/example-add-rows.html @@ -39,6 +39,7 @@ $('table') .find('tbody').append($row) .trigger('addRows', [$row, resort]); + return false; }); }); @@ -66,7 +67,7 @@

Demo


- +
diff --git a/docs/example-apply-widget.html b/docs/example-apply-widget.html index e6cc4fc3..608f7d77 100644 --- a/docs/example-apply-widget.html +++ b/docs/example-apply-widget.html @@ -25,6 +25,7 @@ $("button.applyid").click(function(){ // This method needs to be applied after each sort $('table').trigger('applyWidgetId', ['zebra']); + return false; }); $("button.apply").click(function(){ @@ -32,6 +33,7 @@ $("table").data("tablesorter").widgets = ["zebra"]; // This method applies the widget - no need to keep updating $('table').trigger('applyWidgets'); + return false; }); }); @@ -51,7 +53,7 @@

Demo


-
+
diff --git a/docs/example-child-rows-filtered.html b/docs/example-child-rows-filtered.html index 8d6f282b..e26254d5 100644 --- a/docs/example-child-rows-filtered.html +++ b/docs/example-child-rows-filtered.html @@ -65,6 +65,7 @@ $('.state').html(o.toString()); // update filter; include false parameter to force a new search $('input.tablesorter-filter').trigger('search', false); + return false; }); }); @@ -90,7 +91,7 @@

Demo


-
: true +
: true
  • If true, the child row content is included in ALL filters. Enter "cal" (california) in any column filter and the same rows show up.
  • diff --git a/docs/example-method-sortreset.html b/docs/example-method-sortreset.html index 98c7d17a..ef25b6d1 100644 --- a/docs/example-method-sortreset.html +++ b/docs/example-method-sortreset.html @@ -26,6 +26,7 @@ $('button').click(function(){ $('table').trigger('sortReset'); + return false; }); }); @@ -49,7 +50,7 @@

    Demo

    - +
diff --git a/docs/example-option-show-processing.html b/docs/example-option-show-processing.html index 8d803683..b4f3878f 100644 --- a/docs/example-option-show-processing.html +++ b/docs/example-option-show-processing.html @@ -47,9 +47,10 @@ $('button').click(function(){ var search = $(this).attr('data-search').split(','); $('table').trigger('search', [search]); + return false; }); -}); +}); @@ -77,9 +78,9 @@

Demo

- (females majoring in languages with a score >80)
- (males majoring in languages with a score >80)
- + (females majoring in languages with a score >80)
+ (males majoring in languages with a score >80)
+
diff --git a/docs/example-pager-filtered.html b/docs/example-pager-filtered.html index ec2ffe9f..c1dbf6bf 100644 --- a/docs/example-pager-filtered.html +++ b/docs/example-pager-filtered.html @@ -59,8 +59,8 @@ // present in the table when the pager is applied ("removeRows" is false) // *********************************************************************** var r, $row, num = 50, - row = '' + - ''; + row = '' + + ''; $('button:contains(Add)').click(function(){ // add two rows of random data! r = row.replace(/\{[gijmr]\}/g, function(m){ @@ -77,6 +77,7 @@ $('table') .find('tbody').append($row) .trigger('addRows', [$row]); + return false; }); // Delete a row @@ -103,6 +104,7 @@ $('table').tablesorterPager(pagerOptions); $t.text('Destroy Pager'); } + return false; }); // Disable / Enable @@ -111,6 +113,7 @@ var mode = /Disable/.test( $(this).text() ); $('table').trigger( (mode ? 'disable' : 'enable') + '.pager'); $(this).text( (mode ? 'Enable' : 'Disable') + 'Pager'); + return false; }); $('table').bind('pagerChange', function(){ // pager automatically enables when table is sorted. @@ -140,7 +143,7 @@

Demo


- +

Page: @@ -191,7 +194,7 @@
- + @@ -201,7 +204,7 @@ - + @@ -211,7 +214,7 @@ - + @@ -221,7 +224,7 @@ - + @@ -231,7 +234,7 @@ - + @@ -241,7 +244,7 @@ - + @@ -251,7 +254,7 @@ - + @@ -261,7 +264,7 @@ - + @@ -271,7 +274,7 @@ - + @@ -281,7 +284,7 @@ - + @@ -291,7 +294,7 @@ - + @@ -301,7 +304,7 @@ - + @@ -311,7 +314,7 @@ - + @@ -321,7 +324,7 @@ - + @@ -331,7 +334,7 @@ - + @@ -341,7 +344,7 @@ - + @@ -351,7 +354,7 @@ - + @@ -361,7 +364,7 @@ - + @@ -371,7 +374,7 @@ - + @@ -381,7 +384,7 @@ - + @@ -391,7 +394,7 @@ - + @@ -401,36 +404,36 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Student{i}{m}{g}{r}{r}{r}{r}
Student{j}{m}{g}{r}{r}{r}{r}
Student{i}{m}{g}{r}{r}{r}{r}
Student{j}{m}{g}{r}{r}{r}{r}
70 75 80
Student0288 100 90
Student0395 80 85
Student0455 100 100
Student0580 95 80
Student0699 100 90
Student0768 90 90
Student0890 90 85
Student0950 65 75
Student10100 100 90
Student1185 100 100
Student1275 70 85
Student1380 100 90
Student1445 55 90
Student1535 100 90
Student1650 30 70
Student17100 55 65
Student1849 55 75
Student1990 88 70
Student2045 40 80
Student2145 100 100
Student2299 100 90
Student23Mathematicsmale8277079
Student24Languagesfemale100911382
Student25Mathematicsmale22968253
Student26Languagesfemale37295659
Student27Mathematicsmale86826923
Student28Languagesfemale4425431
Student29Mathematicsmale77472238
Student30Languagesfemale19352310
Student31Mathematicsmale90271750
Student32Languagesfemale60753338
Student33Mathematicsmale4313715
Student34Languagesfemale77978144
Student35Mathematicsmale5815195
Student36Languagesfemale70617094
Student37Mathematicsmale6036184
Student38Languagesfemale6339011
Student39Mathematicsmale50463238
Student40Languagesfemale5175253
Student41Mathematicsmale43342878
Student42Languagesfemale11896095
Student43Mathematicsmale48921888
Student44Languagesfemale8225973
Student45Mathematicsmale91733739
Student46Languagesfemale481210
Student47Mathematicsmale8910611
Student48Languagesfemale90322118
Student49Mathematicsmale42494972
Student50Languagesfemale56376754
Student23Mathematicsmale8277079
Student24Languagesfemale100911382
Student25Mathematicsmale22968253
Student26Languagesfemale37295659
Student27Mathematicsmale86826923
Student28Languagesfemale4425431
Student29Mathematicsmale77472238
Student30Languagesfemale19352310
Student31Mathematicsmale90271750
Student32Languagesfemale60753338
Student33Mathematicsmale4313715
Student34Languagesfemale77978144
Student35Mathematicsmale5815195
Student36Languagesfemale70617094
Student37Mathematicsmale6036184
Student38Languagesfemale6339011
Student39Mathematicsmale50463238
Student40Languagesfemale5175253
Student41Mathematicsmale43342878
Student42Languagesfemale11896095
Student43Mathematicsmale48921888
Student44Languagesfemale8225973
Student45Mathematicsmale91733739
Student46Languagesfemale481210
Student47Mathematicsmale8910611
Student48Languagesfemale90322118
Student49Mathematicsmale42494972
Student50Languagesfemale56376754
diff --git a/docs/example-pager.html b/docs/example-pager.html index c282e9ab..3713f234 100644 --- a/docs/example-pager.html +++ b/docs/example-pager.html @@ -112,8 +112,8 @@ // present in the table when the pager is applied ("removeRows" is false) // *********************************************************************** var r, $row, num = 50, - row = 'Student{i}{m}{g}{r}{r}{r}{r}' + - 'Student{j}{m}{g}{r}{r}{r}{r}'; + row = 'Student{i}{m}{g}{r}{r}{r}{r}' + + 'Student{j}{m}{g}{r}{r}{r}{r}'; $('button:contains(Add)').click(function(){ // add two rows of random data! r = row.replace(/\{[gijmr]\}/g, function(m){ @@ -130,6 +130,7 @@ $('table') .find('tbody').append($row) .trigger('addRows', [$row]); + return false; }); // Delete a row @@ -143,6 +144,7 @@ // restore pager // t.trigger('enable.pager'); t.trigger('update'); + return false; }); // Destroy pager / Restore pager @@ -157,6 +159,7 @@ $('table').tablesorterPager(pagerOptions); $t.text('Destroy Pager'); } + return false; }); // Disable / Enable @@ -165,6 +168,7 @@ var mode = /Disable/.test( $(this).text() ); $('table').trigger( (mode ? 'disable' : 'enable') + '.pager'); $(this).text( (mode ? 'Enable' : 'Disable') + 'Pager'); + return false; }); $('table').bind('pagerChange', function(){ // pager automatically enables when table is sorted. @@ -200,7 +204,7 @@

Demo


- +

First @@ -251,7 +255,7 @@ 70 75 80 - + Student02 @@ -261,7 +265,7 @@ 88 100 90 - + Student03 @@ -271,7 +275,7 @@ 95 80 85 - + Student04 @@ -281,7 +285,7 @@ 55 100 100 - + Student05 @@ -291,7 +295,7 @@ 80 95 80 - + Student06 @@ -301,7 +305,7 @@ 99 100 90 - + Student07 @@ -311,7 +315,7 @@ 68 90 90 - + Student08 @@ -321,7 +325,7 @@ 90 90 85 - + Student09 @@ -331,7 +335,7 @@ 50 65 75 - + Student10 @@ -341,7 +345,7 @@ 100 100 90 - + Student11 @@ -351,7 +355,7 @@ 85 100 100 - + Student12 @@ -361,7 +365,7 @@ 75 70 85 - + Student13 @@ -371,7 +375,7 @@ 80 100 90 - + Student14 @@ -381,7 +385,7 @@ 45 55 90 - + Student15 @@ -391,7 +395,7 @@ 35 100 90 - + Student16 @@ -401,7 +405,7 @@ 50 30 70 - + Student17 @@ -411,7 +415,7 @@ 100 55 65 - + Student18 @@ -421,7 +425,7 @@ 49 55 75 - + Student19 @@ -431,7 +435,7 @@ 90 88 70 - + Student20 @@ -441,7 +445,7 @@ 45 40 80 - + Student21 @@ -451,7 +455,7 @@ 45 100 100 - + Student22 @@ -461,36 +465,36 @@ 99 100 90 - + - Student23Mathematicsmale8277079 - Student24Languagesfemale100911382 - Student25Mathematicsmale22968253 - Student26Languagesfemale37295659 - Student27Mathematicsmale86826923 - Student28Languagesfemale4425431 - Student29Mathematicsmale77472238 - Student30Languagesfemale19352310 - Student31Mathematicsmale90271750 - Student32Languagesfemale60753338 - Student33Mathematicsmale4313715 - Student34Languagesfemale77978144 - Student35Mathematicsmale5815195 - Student36Languagesfemale70617094 - Student37Mathematicsmale6036184 - Student38Languagesfemale6339011 - Student39Mathematicsmale50463238 - Student40Languagesfemale5175253 - Student41Mathematicsmale43342878 - Student42Languagesfemale11896095 - Student43Mathematicsmale48921888 - Student44Languagesfemale8225973 - Student45Mathematicsmale91733739 - Student46Languagesfemale481210 - Student47Mathematicsmale8910611 - Student48Languagesfemale90322118 - Student49Mathematicsmale42494972 - Student50Languagesfemale56376754 + Student23Mathematicsmale8277079 + Student24Languagesfemale100911382 + Student25Mathematicsmale22968253 + Student26Languagesfemale37295659 + Student27Mathematicsmale86826923 + Student28Languagesfemale4425431 + Student29Mathematicsmale77472238 + Student30Languagesfemale19352310 + Student31Mathematicsmale90271750 + Student32Languagesfemale60753338 + Student33Mathematicsmale4313715 + Student34Languagesfemale77978144 + Student35Mathematicsmale5815195 + Student36Languagesfemale70617094 + Student37Mathematicsmale6036184 + Student38Languagesfemale6339011 + Student39Mathematicsmale50463238 + Student40Languagesfemale5175253 + Student41Mathematicsmale43342878 + Student42Languagesfemale11896095 + Student43Mathematicsmale48921888 + Student44Languagesfemale8225973 + Student45Mathematicsmale91733739 + Student46Languagesfemale481210 + Student47Mathematicsmale8910611 + Student48Languagesfemale90322118 + Student49Mathematicsmale42494972 + Student50Languagesfemale56376754 diff --git a/docs/example-parsers-feet-inch-fraction.html b/docs/example-parsers-feet-inch-fraction.html index 0974519b..fb10953c 100644 --- a/docs/example-parsers-feet-inch-fraction.html +++ b/docs/example-parsers-feet-inch-fraction.html @@ -47,7 +47,7 @@

Demo

- parsed values within the column + parsed values within the column
diff --git a/docs/example-parsers-metric.html b/docs/example-parsers-metric.html index 805175da..47688640 100644 --- a/docs/example-parsers-metric.html +++ b/docs/example-parsers-metric.html @@ -60,7 +60,7 @@

Demo

- +
diff --git a/docs/example-widget-bootstrap-theme.html b/docs/example-widget-bootstrap-theme.html index 328a9952..0be08f45 100644 --- a/docs/example-widget-bootstrap-theme.html +++ b/docs/example-widget-bootstrap-theme.html @@ -100,6 +100,7 @@ txt = $(this).data('filter'); $('table').find('.tablesorter-filter').val('').eq(col).val(txt); $('table').trigger('search', false); + return false; }); // toggle zebra widget @@ -120,6 +121,7 @@ .find('span') .text(t ? 'disabled' : 'enabled'); $('table').trigger('refreshWidgets', [false]); + return false; }); }); @@ -157,8 +159,8 @@
  • This demo shows how to get around an issue with the filter widget:
    • The zebra widget button below was added to show that when bootstrap's "table-striped" class is applied, the css defined zebra striping will not apply correctly because table rows are hidden but still accounted for by the css nth-child() selector.
    • -
    • To better understand this issue, disable the zebra widget (using the toggle button). Now in the "Calculus" column.
    • -
    • Try other filter searches with the zebra widget disabled, like in the "Sex" column.
    • +
    • To better understand this issue, disable the zebra widget (using the toggle button). Now in the "Calculus" column.
    • +
    • Try other filter searches with the zebra widget disabled, like in the "Sex" column.
    • To solve this issue, just enable the zebra widget and the "even" and "odd" row class names will should over-ride the nth-child() styling.
      NOTE! This doesn't seem to work in the latest Bootstrap version, so you'll have to remove the "table-striped" class completely from the table.
    • The only down side is that for custom bootstrap themes, you'll need to edit the "theme.bootstrap.css" file for bootstrap.
    @@ -170,9 +172,9 @@

    Demo

    - Reset filter : + Reset filter :
    - Zebra widget : + Zebra widget :

    @@ -198,11 +200,11 @@
  • Metric (binary) SizeGeometry
    - - + + - - + + diff --git a/docs/example-widget-filter-formatter-1.html b/docs/example-widget-filter-formatter-1.html index 38a8a996..6a24e9bc 100644 --- a/docs/example-widget-filter-formatter-1.html +++ b/docs/example-widget-filter-formatter-1.html @@ -53,16 +53,29 @@ valueToHeader: false }); }, + 2 : function($cell, indx){ + return $.tablesorter.filterFormatter.uiSlider( $cell, indx, { + // add any of the jQuery UI Slider options here + value: 1, + min: 1, + max: 65, + delayed: false, + valueToHeader: false, + exactMatch: false, + allText: 'all', // need to show "1" as the minimum value (instead of "all") + compare : '>=' + }); + }, 3 : function($cell, indx){ return $.tablesorter.filterFormatter.uiRange( $cell, indx, { - values: [1, 70], + values: [1, 160], min: 1, - max: 70, - delayed: true, + max: 160, + delayed: false, valueToHeader: false }); }, - 5 : function($cell, indx){ + 4 : function($cell, indx){ return $.tablesorter.filterFormatter.uiSpinner( $cell, indx, { min : 0, max : 45, @@ -81,18 +94,7 @@ changeMonth: true, changeYear : true }); - }, - - 4 : function($cell, indx){ - return $.tablesorter.filterFormatter.uiRange( $cell, indx, { - values: [1, 160], - min: 1, - max: 160, - delayed: true, - valueToHeader: false - }); } - } } }); @@ -123,7 +125,7 @@ -

    jQuery UI Single Slider ("Rank" column)

    +

    jQuery UI Single Slider ("Rank" and "Age" columns)

    • This example shows how you can add a jQuery UI slider to filter column content.
    • @@ -142,6 +144,7 @@ filter_reset : 'button.reset', // add custom selector elements to the filter row filter_formatter : { + 0 : function($cell, indx){ return $.tablesorter.filterFormatter.uiSlider( $cell, indx, { // add any of the jQuery UI Slider options here @@ -153,7 +156,22 @@ exactMatch: true, // exact (true) or match (false) allText: 'all', // text shown when the slider is at the minimum value }); + }, + + 2 : function($cell, indx){ + return $.tablesorter.filterFormatter.uiSlider( $cell, indx, { + // add any of the jQuery UI Slider options here + value: 0, // starting value + min: 0, // minimum value + max: 100, // maximum value + delayed: true, // delay search (set by filter_searchDelay) + valueToHeader: false, // add current slider value to the header cell + exactMatch: false, // exact (true) or match (false) + allText: 'all', // text shown when the slider is at the minimum value + compare : '>=' // show values >= selected value + }); } + } } }); @@ -163,10 +181,11 @@
    • Another option named exactMatch was added to allow exact or general matching of column content.
    • Notice that the left-most value, zero in this case, will clear the column filter to allow a method to show all column content. You can modify the "all" text using the allText option.
    • A search delay was added in v2.7.11 (time set by filter_searchDelay option). It can be disabled by setting the delayed option to false.
    • +
    • In v2.10.1 the compare option was added. This allows comparing the slider's value to the column value. The slider in the Age column is selecting values greater than or equal to itself.
    -

    jQuery UI Range Slider ("Age" and "Total" columns)

    +

    jQuery UI Range Slider ("Total" column)

    • This example shows how you can add a jQuery UI range slider to filter column content.
    • @@ -187,27 +206,15 @@ // add custom selector elements to the filter row filter_formatter : { - // Age column + // Total column 3 : function($cell, indx){ return $.tablesorter.filterFormatter.uiRange( $cell, indx, { - values: [1, 70], // starting range - min: 1, // minimum value - max: 70, // maximum value - delayed: true, // delay search (set by filter_searchDelay) - exactMatch: true, // exact (true) or match (false) - valueToHeader: false // add current slider value to the header cell - }); - }, - - // Total column - 4 : function($cell, indx){ - return $.tablesorter.filterFormatter.uiRange( $cell, indx, { - values: [1, 160], // starting range - min: 1, // minimum value - max: 160, // maximum value - delayed: true, // delay search (set by filter_searchDelay) - exactMatch: true, // exact (true) or match (false) - valueToHeader: false // add current slider value to the header cell + values: [1, 160], // starting range + min: 1, // minimum value + max: 160, // maximum value + delayed: true, // delay search (set by filter_searchDelay) + exactMatch: true, // exact (true) or match (false) + valueToHeader: false, // add current slider value to the header cell }); } @@ -240,7 +247,7 @@ filter_reset : 'button.reset', // add custom selector elements to the filter row filter_formatter : { - 5 : function($cell, indx){ + 4 : function($cell, indx){ return $.tablesorter.filterFormatter.uiSpinner( $cell, indx, { min : 0, max : 45, @@ -341,137 +348,33 @@

    Demo

    - +
    - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + +
    RankColor Name Age Total DiscountDateDate 1Date 2
    1#ff0000Johnson25$5.9522%Jun 26, 2013 7:22 AM
    11#00ff00Hibert12$2.995%Aug 21, 2013 12:21 PM
    12#0000ffHenry51$42.2918%Oct 13, 2013 1:15 PM
    51#00ffffParker28$9.9920%Jul 6, 2013 8:14 AM
    21#ffff00Hood33$19.9925%Dec 10, 2012 5:14 AM
    013#ff0000Kent18$15.8945%Jan 12, 2013 11:14 AM
    005#00ff00Bruce45$153.1945%Jan 18, 2014 9:12 AM
    10#00ffffAlex3$5.294%Jan 8, 2013 5:11 PM
    16#ffff00Franco24$14.1914%Jan 14, 2014 11:23 AM
    66#000000Evans22$13.1911%Jan 18, 2013 9:12 AM
    100#ffffffBrenda18$55.2015%Feb 12, 2013 7:23 PM
    55#ffff00Bronson65$123.0032%Jan 20, 2014 1:12 PM
    9#000000Martha25$22.0917%Jun 11, 2013 10:55 AM
    1Johnson25$5.9522%Jun 26, 2013 7:22 AMJun 26, 2013 7:22 AM
    11Hibert12$82.995%Aug 21, 2013 12:21 PMAug 21, 2013 12:21 PM
    12Henry51$99.2918%Oct 13, 2013 1:15 PMOct 13, 2013 1:15 PM
    51Parker28$9.9920%Jul 6, 2013 8:14 AMJul 6, 2013 8:14 AM
    21Hood33$19.9925%Dec 10, 2012 5:14 AMDec 10, 2012 5:14 AM
    013Kent18$65.8945%Jan 12, 2013 11:14 AMJan 12, 2013 11:14 AM
    005Bruce45$153.1945%Jan 18, 2014 9:12 AMJan 18, 2014 9:12 AM
    10Alex3$5.294%Jan 8, 2013 5:11 PMJan 8, 2013 5:11 PM
    16Franco24$14.1914%Jan 14, 2014 11:23 AMJan 14, 2014 11:23 AM
    66Evans22$13.1911%Jan 18, 2013 9:12 AMJan 18, 2013 9:12 AM
    100Brenda18$55.2015%Feb 12, 2013 7:23 PMFeb 12, 2013 7:23 PM
    55Bronson65$123.0032%Jan 20, 2014 1:12 PMJan 20, 2014 1:12 PM
    9Martha25$22.0917%Jun 11, 2013 10:55 AMJun 11, 2013 10:55 AM
    diff --git a/docs/example-widget-filter-formatter-2.html b/docs/example-widget-filter-formatter-2.html index 5b6dae48..fa9ea76a 100644 --- a/docs/example-widget-filter-formatter-2.html +++ b/docs/example-widget-filter-formatter-2.html @@ -222,7 +222,7 @@

    Demo

    - +
    diff --git a/docs/example-widget-filter.html b/docs/example-widget-filter.html index 36a64492..edcf2a76 100644 --- a/docs/example-widget-filter.html +++ b/docs/example-widget-filter.html @@ -104,7 +104,7 @@ // External search // buttons set up like this: - // + // $('button.search').click(function(){ /*** first method *** data-filter-column="1" data-filter-text="!son" add search value to Discount column (zero based index) input */ @@ -131,6 +131,7 @@ $('table').trigger('search', [ columns ]); */ + return false; }); }); @@ -153,6 +154,7 @@ $(function(){ } // update search after option change; add false to trigger to skip search delay $('table.tablesorter').trigger('search', false); + return false; }); }); @@ -290,13 +292,13 @@ $.tablesorter.setFilters( $('table'), [ '', '', '', '', '', '2?%' ], true );

    Demo

    - filter_startsWith : false (if true, search from beginning of cell content only)
    - filter_ignoreCase : true (if false, the search will be case sensitive) + filter_startsWith : false (if true, search from beginning of cell content only)
    + filter_ignoreCase : true (if false, the search will be case sensitive)
    - (search the Discount column for "2?%")
    - + (search the Discount column for "2?%")
    +
    diff --git a/docs/example-widget-savesort.html b/docs/example-widget-savesort.html index 66e74644..a4dc9437 100644 --- a/docs/example-widget-savesort.html +++ b/docs/example-widget-savesort.html @@ -33,6 +33,7 @@ $('table') .trigger('saveSortReset') // clear saved sort .trigger("sortReset"); // reset current table sort + return false; }); }); @@ -58,7 +59,7 @@

    Demo

    -
    +

    diff --git a/docs/example-widget-scroller.html b/docs/example-widget-scroller.html index db335f9a..188da8d6 100644 --- a/docs/example-widget-scroller.html +++ b/docs/example-widget-scroller.html @@ -79,6 +79,7 @@ $(function() { this.config.widgetOptions.scroller_jumpToHeader = b; $c.html(b + ''); }); + return false; }); }); @@ -123,7 +124,7 @@ $(function() {

    - scroller_jumpToHeader : true (see the note above)* + scroller_jumpToHeader : true (see the note above)*
    diff --git a/docs/index.html b/docs/index.html index 26d97e10..c7d64ed5 100644 --- a/docs/index.html +++ b/docs/index.html @@ -300,7 +300,7 @@
  • Filter Widget:
  • @@ -1847,7 +1847,9 @@ $(function(){ Filter widget: If a header contains a select dropdown and this class name, only the available (visible) options in the column will show (v2.10.1).

    - This option is useful after one or more columns have been filtered, then the column select filter with this class applied will only show the contents of the column within the dropdown that are currently visible. See the custom filter widget demo "Discount" column for an example (sort the "First Name" column first). + This option is useful after one or more columns have been filtered, then the column select filter with this class applied will only show the contents of the column within the dropdown that are currently visible. See the custom filter widget demo "Discount" column for an example (sort the "First Name" column first).
    +
    + Caution: The main issue with this functionality is with keyboard accessibility. If the keyboard is used to select an option, only the first and default options will be available for chosing. The only way to select other options is with the mouse.
    @@ -2923,6 +2925,7 @@ $("table") // click a button to apply the zebra striping $("button").click(function(){ $('table').trigger('applyWidgetId', ['zebra']); + return false; }); }); @@ -3040,6 +3043,7 @@ $.tablesorter.setFilters( $('table'), [ '', '', '', '', '', '2?%' ], true ); // // this is the same code that the filter_reset element runs to clear out the filters. $('button').click(function(){ $('table').trigger('filterReset'); + return false; }); @@ -3078,6 +3082,7 @@ $.tablesorter.addHeaderResizeEvent( table, true );
    $(function(){
       $('button').click(function(){
         $('table').trigger('saveSortReset');
    +    return false;
       });
     });
    diff --git a/docs/js/docs.js b/docs/js/docs.js index 19fbf84b..dd5bc2a5 100644 --- a/docs/js/docs.js +++ b/docs/js/docs.js @@ -127,6 +127,7 @@ var addParsedValues = function($t, cols, format){ $('.toggleparsedvalue').on('click', function(){ $('.val').toggleClass('hidden'); + return false; }); };
    Example Example