Mercurial > defr > drupal > scald > dnd
comparison js/dnd-library.js @ 43:196348c8298f
Library: Switch to a purely click based popup opening.
This probably should be a setting somewhere, but opening the popup on hover
prevents interacting with rich player that might be there (sound/video player
for example)
author | Franck Deroche <franck@defr.org> |
---|---|
date | Thu, 15 Oct 2009 11:45:41 +0200 |
parents | eb7c103b54cb |
children | c2b8f7e1f4c1 |
comparison
equal
deleted
inserted
replaced
42:eb7c103b54cb | 43:196348c8298f |
---|---|
108 } | 108 } |
109 | 109 |
110 // Add preview behavior to editor items (thanks, BeautyTips!) | 110 // Add preview behavior to editor items (thanks, BeautyTips!) |
111 $('.editor-item', $this).each(function () { | 111 $('.editor-item', $this).each(function () { |
112 $(this).bt(Drupal.settings.dndLibraryPreviews[this.id], settings.btSettings); | 112 $(this).bt(Drupal.settings.dndLibraryPreviews[this.id], settings.btSettings); |
113 $(this).hoverIntent(settings.libraryHoverIntentSettings); | 113 //$(this).hoverIntent(settings.libraryHoverIntentSettings); |
114 }); | 114 }); |
115 | 115 |
116 // Preload images in editor representations | 116 // Preload images in editor representations |
117 var cached = $.data($(editor), 'dnd_preload') || {}; | 117 var cached = $.data($(editor), 'dnd_preload') || {}; |
118 for (editor_id in Drupal.settings.dndEditorRepresentations) { | 118 for (editor_id in Drupal.settings.dndEditorRepresentations) { |