BUG: Print button inside a collection button incorrectly stays put?

BUG: Print button inside a collection button incorrectly stays put?

icebergiceberg Posts: 14Questions: 0Answers: 0
edited April 2011 in TableTools
Hi Allan,

I notice a strange bug of TableTools 2.0.1 (coming with DataTables 1.7.6). When I define a print button inside a collection button, the print button expectingly disappears after the end user comes back from the print view but, it actually still there, clickable, although invisible.

I've tested it with Chrome 10, IE8, Firefox3. And this is an online sample too. http://jsfiddle.net/gzARr/1/

Please take a look to it. Thanks!

Regards,
Ray

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Interesting one. I'm not sure why that is - this line of code should deal with it:

    [code]
    $(this.dom.collection.collection).animate({"opacity": 0}, 500, function (e) {
    this.style.display = "none";
    } );
    [/code]
    Added to the to-do list :-)

    Allan
  • icebergiceberg Posts: 14Questions: 0Answers: 0
    edited May 2011
    Sorry, where do you mean the above code shall go to? I put them inside my print button's fnComplete(), but see no improvement. Oh, it seems only work for the first time user back from "print" button. Weird enough, aha?
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Sorry - I didn't make that very clear. Those three lines of code are already in TableTools and they should make it work. I'm not sure why it doesn't work at the moment!

    Allan
This discussion has been closed.