Bug 6235 : Corrects the behaviour of the humanmsg box on IE8 and IE7.

Without this fix, the black box that appears when you save system
preferences doesn't disappear on IE.

Fix from http://code.google.com/p/humanmsg/issues/detail?id=1
(Thanks Owen Leonard)

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 661bcfadbd)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
This commit is contained in:
Frédérick Capovilla 2011-04-21 14:09:54 -04:00 committed by Chris Nighswonger
parent 7cb450bef9
commit 4058142f3e
1 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ var humanMsg = {
bindEvents: function() {
// Remove message if mouse is moved or key is pressed
jQuery(window)
jQuery(document)
.mousemove(humanMsg.removeMsg)
.click(humanMsg.removeMsg)
.keypress(humanMsg.removeMsg)
@ -79,7 +79,7 @@ var humanMsg = {
removeMsg: function() {
// Unbind mouse & keyboard
jQuery(window)
jQuery(document)
.unbind('mousemove', humanMsg.removeMsg)
.unbind('click', humanMsg.removeMsg)
.unbind('keypress', humanMsg.removeMsg)