Skip to content

Commit

Permalink
Fix: fnSelect button callback option didn't work for flash buttons.
Browse files Browse the repository at this point in the history
Moving on to 2.2.4 development
  • Loading branch information
Allan Jardine committed Sep 25, 2014
1 parent 104fda6 commit 49cafd1
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
13 changes: 10 additions & 3 deletions js/dataTables.tableTools.js
@@ -1,4 +1,4 @@
/*! TableTools 2.2.3
/*! TableTools 2.2.4-dev
* 2009-2014 SpryMedia Ltd - datatables.net/license
*
* ZeroClipboard 1.0.4
Expand All @@ -8,7 +8,7 @@
/**
* @summary TableTools
* @description Tools and buttons for DataTables
* @version 2.2.3
* @version 2.2.4-dev
* @file dataTables.tableTools.js
* @author SpryMedia Ltd (www.sprymedia.co.uk)
* @contact www.sprymedia.co.uk/contact
Expand Down Expand Up @@ -1978,6 +1978,13 @@ TableTools.prototype = {
that._fnCollectionHide( nButton, oConfig );
} );

if ( oConfig.fnSelect !== null )
{
TableTools._fnEventListen( this, 'select', function (n) {
oConfig.fnSelect.call( that, nButton, oConfig, n );
} );
}

this._fnFlashGlue( flash, nButton, oConfig.sToolTip );
},

Expand Down Expand Up @@ -3104,7 +3111,7 @@ TableTools.prototype.CLASS = "TableTools";
* @type String
* @default See code
*/
TableTools.version = "2.2.3";
TableTools.version = "2.2.4-dev";



Expand Down
9 changes: 8 additions & 1 deletion src/TableTools.js
Expand Up @@ -1543,6 +1543,13 @@ TableTools.prototype = {
that._fnCollectionHide( nButton, oConfig );
} );

if ( oConfig.fnSelect !== null )
{
TableTools._fnEventListen( this, 'select', function (n) {
oConfig.fnSelect.call( that, nButton, oConfig, n );
} );
}

this._fnFlashGlue( flash, nButton, oConfig.sToolTip );
},

Expand Down Expand Up @@ -2669,7 +2676,7 @@ TableTools.prototype.CLASS = "TableTools";
* @type String
* @default See code
*/
TableTools.version = "2.2.3";
TableTools.version = "2.2.4-dev";



Expand Down
4 changes: 2 additions & 2 deletions src/dataTables.tableTools.js
@@ -1,4 +1,4 @@
/*! TableTools 2.2.3
/*! TableTools 2.2.4-dev
* 2009-2014 SpryMedia Ltd - datatables.net/license
*
* ZeroClipboard 1.0.4
Expand All @@ -8,7 +8,7 @@
/**
* @summary TableTools
* @description Tools and buttons for DataTables
* @version 2.2.3
* @version 2.2.4-dev
* @file dataTables.tableTools.js
* @author SpryMedia Ltd (www.sprymedia.co.uk)
* @contact www.sprymedia.co.uk/contact
Expand Down

0 comments on commit 49cafd1

Please sign in to comment.