fix filter formatter for HTML5 spinner

This commit is contained in:
Mottie 2013-11-08 02:45:22 -06:00
parent b312c707c3
commit bf733e0808

View File

@ -1,4 +1,4 @@
/*! Filter widget formatter functions - updated 10/30/2013 /*! Filter widget formatter functions - updated 11/8/2013
* requires: tableSorter 2.7.7+ and jQuery 1.4.3+ * requires: tableSorter 2.7.7+ and jQuery 1.4.3+
* *
* uiSpinner (jQuery UI spinner) * uiSpinner (jQuery UI spinner)
@ -630,8 +630,7 @@ $.tablesorter.filterFormatter = {
var compare = ( $cell.find('.compare').val() || o.compare); var compare = ( $cell.find('.compare').val() || o.compare);
$cell.find('input[type=hidden]') $cell.find('input[type=hidden]')
// add equal to the beginning, so we filter exact numbers // add equal to the beginning, so we filter exact numbers
.val( !o.addToggle || chkd ? (o.compare ? o.compare : o.exactMatch ? '=' : '') + v : '' ) .val( !o.addToggle || chkd ? (compare ? compare : o.exactMatch ? '=' : '') + v : '' )
.val( !o.addToggle || chkd ? compare + v : '' )
.trigger('search', delayed ? delayed : o.delayed).end() .trigger('search', delayed ? delayed : o.delayed).end()
.find('.number').val(v); .find('.number').val(v);
if ($cell.find('.number').length) { if ($cell.find('.number').length) {