Mercurial > defr > drupal > scald > dnd
changeset 19:d83073a08b25
Added beautytips, and advanced library behavior to the library prototype.
line wrap: on
line diff
--- a/dnd.module Fri Mar 06 14:11:46 2009 -0600 +++ b/dnd.module Fri Mar 06 14:26:06 2009 -0600 @@ -76,7 +76,7 @@ */ function dnd_process_textarea($element, $form_state) { if ($element['#dnd-enabled']) { - drupal_add_js(drupal_get_path('module', 'dnd') .'/js/bt/other_libs/excanvas-compressed.js'); + drupal_add_js(drupal_get_path('module', 'dnd') .'/js/bt/other_libs/excanvas_0002/excanvas-compressed.js'); drupal_add_js(drupal_get_path('module', 'dnd') .'/js/jquery.url.packed.js'); drupal_add_js(drupal_get_path('module', 'dnd') .'/js/jquery.fieldselection.js'); drupal_add_js(drupal_get_path('module', 'dnd') .'/js/bt/jquery.bt.js');
--- a/js/dnd-library.js Fri Mar 06 14:11:46 2009 -0600 +++ b/js/dnd-library.js Fri Mar 06 14:26:06 2009 -0600 @@ -66,10 +66,7 @@ $.getJSON(this.href, function(data) { Drupal.behaviors.dndLibrary.refreshLibrary.call($this.get(0), data, $editor); }); - - // Reattach behaviors Drupal.behaviors.dndLibrary(); - return false; }); @@ -108,6 +105,9 @@ for (preview_id in data.library_previews) { Drupal.settings.dndLibraryPreviews[preview_id] = data.library_previews[preview_id]; } + + // Reattach behaviors + Drupal.behaviors.dndLibrary(); }