diff --git a/docs/index.html b/docs/index.html
index db5963ba..97c90a26 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -522,7 +522,7 @@
- Assorted date parsers (v2.8; v2.14; includes weekday, month, two-digit year & sugar.js date parsers).
- Ignore leading articles parser (Ignore "A", "An" and "The" in titles) (v2.8).
- - Input/select parsers (used by Grouping rows widget) (v2.8; v2.16.2).
+ - Input/select parsers (used by Grouping rows widget) (v2.8; v2.17.1).
- Metric parser (v2.8).
- Feet-inch-fraction parser (v2.8).
- IPv6 address parser (v2.12).
diff --git a/js/parsers/parser-input-select.js b/js/parsers/parser-input-select.js
index 8e073c3d..f4704e73 100644
--- a/js/parsers/parser-input-select.js
+++ b/js/parsers/parser-input-select.js
@@ -71,17 +71,20 @@
$(window).load(function(){
// this flag prevents the updateCell event from being spammed
// it happens when you modify input text and hit enter
- var alreadyUpdating = false;
- $('table').find('tbody').on('change', 'select, input', function(e){
+ var alreadyUpdating = false,
+ t = $.tablesorter.css.table || 'tablesorter';
+ // bind to .tablesorter (default class name)
+ $('.' + t).find('tbody').on('change', 'select, input', function(e){
if (!alreadyUpdating) {
var $tar = $(e.target),
$cell = $tar.closest('td'),
$table = $cell.closest('table'),
indx = $cell[0].cellIndex,
- c = $table[0].config,
+ c = $table[0].config || false,
$hdr = c && c.$headers && c.$headers.eq(indx);
- // don't use updateCell if column is set to "sorter-false" and "filter-false"
- if ($hdr.length && $hdr.hasClass('sorter-false') && $hdr.hasClass('filter-false')){
+ // abort if not a tablesorter table, or
+ // don't use updateCell if column is set to "sorter-false" and "filter-false", or column is set to "parser-false"
+ if ( !c || ( $hdr && $hdr.length && ( $hdr.hasClass('parser-false') || ($hdr.hasClass('sorter-false') && $hdr.hasClass('filter-false')) ) ) ){
return false;
}
alreadyUpdating = true;