Escape from print view doesn't work in IE8
Escape from print view doesn't work in IE8
rquantz
Posts: 3Questions: 0Answers: 0
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
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
This discussion has been closed.
Replies
@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