# HG changeset patch # User David Eads # Date 1236371166 21600 # Node ID d83073a08b253d0f8d7b3d427a7ac4c066803140 # Parent 0d557e6e73f7188fc02a58822846f156a8a340e0 Added beautytips, and advanced library behavior to the library prototype. diff -r 0d557e6e73f7 -r d83073a08b25 dnd.module --- 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'); diff -r 0d557e6e73f7 -r d83073a08b25 js/dnd-library.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(); }