diff dnd.module @ 18:0d557e6e73f7

Added beautytips and some additional event handling code to the library.
author David Eads <eads@chicagotech.org>
date Fri, 06 Mar 2009 14:11:46 -0600
parents 1a77f87927dd
children d83073a08b25
line wrap: on
line diff
--- a/dnd.module	Wed Mar 04 13:29:31 2009 -0600
+++ b/dnd.module	Fri Mar 06 14:11:46 2009 -0600
@@ -76,15 +76,16 @@
  */
 function dnd_process_textarea($element, $form_state) {
   if ($element['#dnd-enabled']) {
-
-    drupal_add_js(drupal_get_path('module', 'dnd') .'/js/jquery.url.packed.js', 'footer');
-    drupal_add_js(drupal_get_path('module', 'dnd') .'/js/jquery.fieldselection.js', 'footer');
-    drupal_add_js(drupal_get_path('module', 'dnd') .'/js/dnd.js', 'footer');
-    drupal_add_js(drupal_get_path('module', 'dnd') .'/js/dnd-library.js', 'footer');
+    drupal_add_js(drupal_get_path('module', 'dnd') .'/js/bt/other_libs/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');
+    drupal_add_js(drupal_get_path('module', 'dnd') .'/js/jquery.draganddrop.js');
+    drupal_add_js(drupal_get_path('module', 'dnd') .'/js/dnd-library.js');
 
     $settings = array();
 
-    // We take a string or an 
+    // We take a string or an object or an array
     if (is_string($element['#dnd-settings'])) {
       // @TODO load settings
     } 
@@ -108,6 +109,9 @@
   return $element;
 }
 
+/**
+ * Drag and drop library template preprocessor.
+ */
 function template_preprocess_dnd_library(&$variables) {
   global $base_url;
   list($element, $settings) = array($variables['element'], $variables['settings']);