From 9ab577bee1051c92a998226bc0d5a5865df854e2 Mon Sep 17 00:00:00 2001 From: =?utf-8?q?Fr=C3=A9d=C3=A9rick=20Capovilla?= Date: Thu, 21 Apr 2011 14:09:54 -0400 Subject: [PATCH] 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) --- .../prog/en/lib/jquery/plugins/humanmsg.js | 4 ++-- 1 files 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 d38cf93..af37c88 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) -- 1.5.6.5