From 661bcfadbdca6d6d6c1cdb8ba9c398e6c0b45b8f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9rick=20Capovilla?= Date: Thu, 21 Apr 2011 14:09:54 -0400 Subject: [PATCH] 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 Signed-off-by: Paul Poulain Signed-off-by: Chris Cormack --- .../intranet-tmpl/prog/en/lib/jquery/plugins/humanmsg.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/jquery/plugins/humanmsg.js b/koha-tmpl/intranet-tmpl/prog/en/lib/jquery/plugins/humanmsg.js index d38cf93953..af37c881a5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/lib/jquery/plugins/humanmsg.js +++ b/koha-tmpl/intranet-tmpl/prog/en/lib/jquery/plugins/humanmsg.js @@ -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) -- 2.39.5