DataTables / TableTools

Please note that TableTools has now been retired and replaced by the Buttons and Select extensions which offers significant improvements and API integration with the rest of DataTables and the other extensions.
http://datatables.net/
Other
237 stars 149 forks source link

Restore elements that are hidden during fnPrint to previous display value, not "block". #21

Open zachlowry opened 11 years ago

zachlowry commented 11 years ago

Elements that are hidden during the print function should be restored to their previous display value. Currently they are set to "block". I've included a patch below.

https://gist.github.com/zachlowry/5220953

DataTables commented 11 years ago

Sounds like a good idea. But anFeature[cFeature][i].style.display isn't always going to be set is it? Only if the display property has been calculated previously. Does it not need to be $(anFeature[cFeature][i]).css('display')? I was a little concerned before about speed if there were a lot of elements on the page, but it is probably acceptable now.

zachlowry commented 11 years ago

That seems to work for me.