Escape from print view doesn't work in IE8

Escape from print view doesn't work in IE8

rquantzrquantz Posts: 3Questions: 0Answers: 0
edited February 2012 in Bug reports
Hi Allan,
This is a bug report for TableTools.

Thanks so much for this plugin, it's really a lifesaver. That being said, in IE8, hitting escape to return to the normal view after printing does nothing. (I haven't tested in earlier versions of IE since this is an intranet application.)

The problem seems to come from binding to the "keydown" event. I fixed it by changing the event to keyup, at line 1706 in v2.0.1, and also the corresponding line that unbinds the event:

[code]
$(document).bind( "keyup", null, this.s.print.funcEnd );
...
$(document).unbind( "keyup", this.s.print.funcEnd );
[/code]

Let me know if you have any thoughts on this. Thanks again.

Rick

Replies

  • rquantzrquantz Posts: 3Questions: 0Answers: 0
    Sorry, I just realized this should have been posted in bug reports.
  • rquantzrquantz Posts: 3Questions: 0Answers: 0
    Hello, sorry to keep bumping this to the top, is there something I need to add in order to get a response to this?
  • David_PerbalDavid_Perbal Posts: 1Questions: 0Answers: 0
    edited April 2012
    Hi,

    @rquantz, I had the same problem with IE6 and IE8 but not IE7.
    Your correction fixes all the problems in DataTables 1.9 :)

    @Allan, could you check it and take it in the next release please ?
    I also want to thank you for this excellent plugin :)

    David
This discussion has been closed.