From 7a0aead0d9bbdbb927a24a8992f14bdc945a3920 Mon Sep 17 00:00:00 2001 From: Arthur Barrett Date: Mon, 4 Mar 2013 17:21:32 -0500 Subject: [PATCH] annotation now hides automatically on mouseleave events. click to hide/show or re-position the annotation. --- .../lib/xmodule/xmodule/js/src/annotatable/display.coffee | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/lib/xmodule/xmodule/js/src/annotatable/display.coffee b/common/lib/xmodule/xmodule/js/src/annotatable/display.coffee index c97250c8f8..6a5aae81c5 100644 --- a/common/lib/xmodule/xmodule/js/src/annotatable/display.coffee +++ b/common/lib/xmodule/xmodule/js/src/annotatable/display.coffee @@ -65,10 +65,12 @@ class @Annotatable mouse: false # dont follow the mouse y: -10 show: - event: 'mouseenter' + event: 'click mouseenter' solo: true hide: - event: 'unfocus' + event: 'click mouseleave' + delay: 250, + fixed: true style: classes: 'ui-tooltip-annotatable' events: