TableTools - Opera - Buttons onclick BUG
TableTools - Opera - Buttons onclick BUG
mafernandez
Posts: 1Questions: 0Answers: 0
When I created a table with buttons on table using TableTools, the buttons does not response to onclick event on Opera Browser.
So I changed the TableTolls.js in line 1237 where the TableTool assigned the function to click event by mousedown event and The problem was fixed.
[code]
[line 1237 - 1252]
$(nButton).mousedown( function (e) {
e.preventDefault();
if ( oConfig.fnClick !== null )
{
oConfig.fnClick.call( that, nButton, oConfig, null );
}
/* Provide a complete function to match the behaviour of the flash elements */
if ( oConfig.fnComplete !== null )
{
oConfig.fnComplete.call( that, nButton, oConfig, null, null );
}
that._fnCollectionHide( nButton, oConfig );
} );
[/code]
I hope that code can be useful someone.
Regards.
Mariano.
So I changed the TableTolls.js in line 1237 where the TableTool assigned the function to click event by mousedown event and The problem was fixed.
[code]
[line 1237 - 1252]
$(nButton).mousedown( function (e) {
e.preventDefault();
if ( oConfig.fnClick !== null )
{
oConfig.fnClick.call( that, nButton, oConfig, null );
}
/* Provide a complete function to match the behaviour of the flash elements */
if ( oConfig.fnComplete !== null )
{
oConfig.fnComplete.call( that, nButton, oConfig, null, null );
}
that._fnCollectionHide( nButton, oConfig );
} );
[/code]
I hope that code can be useful someone.
Regards.
Mariano.
This discussion has been closed.