From 86f4e07cac980b9a94249ee7cfc2302fd5ab7145 Mon Sep 17 00:00:00 2001 From: Andreas Mair Date: Wed, 23 Sep 2015 08:53:13 +0200 Subject: [PATCH] data-column="#" (with # > 9) didn't work in external filters. --- js/widgets/widget-filter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/widgets/widget-filter.js b/js/widgets/widget-filter.js index dba9c31c..3baa5cd2 100644 --- a/js/widgets/widget-filter.js +++ b/js/widgets/widget-filter.js @@ -907,7 +907,7 @@ targets = wo.filter_initialized || !$input.filter( wo.filter_anyColumnSelector ).length, columns = [], val = $.trim( tsf.getLatestSearch( $input ).attr( 'data-column' ) || '' ); - if ( !/[,-]/.test(val) && val.length === 1 ) { + if ( /^[0-9]+$/.test(val)) { return parseInt( val, 10 ); } // process column range