mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
enhance(parser-input-select): parser-false on input within cell (#1809)
* enhance(parser-input-select): parser-false on input within cell * Update parser-input-select.js * Update parser-input-select.js Clarify use
This commit is contained in:
parent
7bedd220a6
commit
39d99f6857
@ -226,6 +226,10 @@
|
|||||||
this.value = $( this ).data( 'ts-original-value' );
|
this.value = $( this ).data( 'ts-original-value' );
|
||||||
})
|
})
|
||||||
.on( 'change keyup '.split( ' ' ).join( namespace + ' ' ), 'select, input, textarea', function( event ) {
|
.on( 'change keyup '.split( ' ' ).join( namespace + ' ' ), 'select, input, textarea', function( event ) {
|
||||||
|
// don't use updateCell if this (input) is set to 'parser-false'
|
||||||
|
if (this.classList.contains('parser-false')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
var $row = $( this ).closest( 'tr' ),
|
var $row = $( this ).closest( 'tr' ),
|
||||||
c = $row.closest( 'table' )[0].config;
|
c = $row.closest( 'table' )[0].config;
|
||||||
if ( !c || c && c.ignoreChildRow && $row.hasClass( c.cssChildRow ) ) {
|
if ( !c || c && c.ignoreChildRow && $row.hasClass( c.cssChildRow ) ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user