comparison 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
comparison
equal deleted inserted replaced
34:a9dc86da7be8 35:abc9d39cfbe9
37 var $editor = $('#' + this.id.slice(0, -12)); 37 var $editor = $('#' + this.id.slice(0, -12));
38 38
39 // Set up some initial settings for BeautyTips 39 // Set up some initial settings for BeautyTips
40 var settings = Drupal.settings.dndEnabledLibraries[$editor.get(0).id] = $.extend({ 40 var settings = Drupal.settings.dndEnabledLibraries[$editor.get(0).id] = $.extend({
41 'btSettings' : { 41 'btSettings' : {
42 'trigger': 'none', 42 'trigger': ['click'],
43 'width': 375, 43 'width': 375,
44 'spikeLength': 7, 44 'spikeLength': 7,
45 'spikeGirth': 9, 45 'spikeGirth': 9,
46 'corner-radius' : 3, 46 'corner-radius' : 3,
47 'strokeWidth': 1, 47 'strokeWidth': 1,
48 'fill': '#ffd', 48 'fill': '#ffd',
49 'strokeStyle': '#555' 49 'strokeStyle': '#555',
50 'closeWhenOthersOpen': true
50 }, 51 },
51 'libraryHoverIntentSettings' : { 52 'libraryHoverIntentSettings' : {
52 'interval': 500, 53 'interval': 500,
53 'timeout' : 0, 54 'timeout' : 0,
54 'over': function() { 55 'over': function() {