Mike,
I'm so glad my patch has been of use to you.
Many thanks for the correction to the documentation.
To future users of the patch: Please use mikehershey's version of the "sample call with feedback".
Airshow
Airshow
WiFi Lounge Lizard
2,782 posts since Apr 2009
Reputation Points: 370
Solved Threads: 389
Skill Endorsements: 10
It's very gratifying that folk are registering here at Daniweb just to say thank you. More power to your elbow guys & gals.
The author of Tablesorter has been made aware via his Google code repository.
Airshow
Airshow
WiFi Lounge Lizard
2,782 posts since Apr 2009
Reputation Points: 370
Solved Threads: 389
Skill Endorsements: 10
A few points ...
Line 12 has an unwanted comma.
I'm not 100% sure that row removal requires a resort. Surely the remaining rows just stay in their current sort order. There's no harm in doing a re-sort but is it necessary, mmmm?
Assuming a resort is necessary, lines 16-19 should read as follows:
With jQuery <1.7 :
$("table").delegate('button.remove', 'click' ,function(){
var $this = $(this);
var $table = $this.closest('table');
$this.closest('tr').remove();
$table.trigger({type:'update', resort:true});
});
With jQuery >=1.7, .delegate() is deprecated in favour of a particular use of .on(), therefore :
$("table").on('click', 'button.remove', function() {
var $this = $(this);
var $table = $this.closest('table');
$this.closest('tr').remove();
$table.trigger({type:'update', resort:true});
});
Airshow
WiFi Lounge Lizard
2,782 posts since Apr 2009
Reputation Points: 370
Solved Threads: 389
Skill Endorsements: 10