mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Editable: remove "blur" event listeners. See #1360
This commit is contained in:
parent
105bf11564
commit
fd3869cbc8
2
dist/js/widgets/widget-editable.min.js
vendored
2
dist/js/widgets/widget-editable.min.js
vendored
File diff suppressed because one or more lines are too long
@ -150,7 +150,7 @@
|
||||
});
|
||||
|
||||
c.$tbodies
|
||||
.off( ( 'focus blur focusout keydown '.split( ' ' ).join( namespace + ' ' ) ).replace( /\s+/g, ' ' ) )
|
||||
.off( ( 'focus focusout keydown '.split( ' ' ).join( namespace + ' ' ) ).replace( /\s+/g, ' ' ) )
|
||||
.on( 'focus' + namespace, '[contenteditable]', function( e ) {
|
||||
clearTimeout( $( this ).data( 'timer' ) );
|
||||
c.$table.data( 'contentFocused', e.target );
|
||||
@ -186,7 +186,7 @@
|
||||
}
|
||||
}
|
||||
})
|
||||
.on( 'blur focusout keydown '.split( ' ' ).join( namespace + ' ' ), '[contenteditable]', function( e ) {
|
||||
.on( 'focusout keydown '.split( ' ' ).join( namespace + ' ' ), '[contenteditable]', function( e ) {
|
||||
if ( !c.$table.data( 'contentFocused' ) ) { return; }
|
||||
var t, validate,
|
||||
valid = false,
|
||||
@ -277,7 +277,7 @@
|
||||
tmp = ( 'updateComplete pagerComplete '.split( ' ' ).join( namespace + ' ' ) ).replace( /\s+/g, ' ' );
|
||||
c.$table.off( tmp );
|
||||
|
||||
tmp = ( 'focus blur focusout keydown paste '.split( ' ' ).join( namespace + ' ' ) ).replace( /\s+/g, ' ' );
|
||||
tmp = ( 'focus focusout keydown paste '.split( ' ' ).join( namespace + ' ' ) ).replace( /\s+/g, ' ' );
|
||||
c.$tbodies
|
||||
.off( tmp )
|
||||
.find( cols.join( ',' ) )
|
||||
|
Loading…
Reference in New Issue
Block a user