Mercurial > defr > drupal > scald > dnd
diff js/dnd-library.js @ 35:abc9d39cfbe9
Switch the trigger from mouseover to click.
MouseOver is problematic if people want to interact with the content of the
popup, for example to click the play button of an swf player.
author | Franck Deroche <franck@defr.org> |
---|---|
date | Fri, 18 Sep 2009 15:11:03 +0200 |
parents | ee520ba7d98b |
children | 7ed2ac0cec27 |
line wrap: on
line diff
--- a/js/dnd-library.js Fri Sep 18 15:08:22 2009 +0200 +++ b/js/dnd-library.js Fri Sep 18 15:11:03 2009 +0200 @@ -39,14 +39,15 @@ // Set up some initial settings for BeautyTips var settings = Drupal.settings.dndEnabledLibraries[$editor.get(0).id] = $.extend({ 'btSettings' : { - 'trigger': 'none', + 'trigger': ['click'], 'width': 375, 'spikeLength': 7, 'spikeGirth': 9, 'corner-radius' : 3, 'strokeWidth': 1, 'fill': '#ffd', - 'strokeStyle': '#555' + 'strokeStyle': '#555', + 'closeWhenOthersOpen': true }, 'libraryHoverIntentSettings' : { 'interval': 500,