[Koha-patches] [PATCH] [SIGNED-OFF] Corrects the behaviour of the humanmsg box on IE8 and IE7.

Owen Leonard oleonard at myacpl.org
Thu May 5 16:30:48 CEST 2011


From: Frédérick Capovilla <frederick.capovilla at sys-tech.net>

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 at myacpl.org>
---
 .../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.7.3



More information about the Koha-patches mailing list