diff js/dnd-library.js @ 19:d83073a08b25

Added beautytips, and advanced library behavior to the library prototype.
author David Eads <eads@chicagotech.org>
date Fri, 06 Mar 2009 14:26:06 -0600
parents 0d557e6e73f7
children 89fe0aca43d4
line wrap: on
line diff
--- 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(); 
 }