diff js/dnd-library.js @ 28:7d6bf2dca269

Completely broken library registration, fixed a typo.
author David Eads <eads@chicagotech.org>
date Tue, 17 Mar 2009 06:25:47 -0500
parents 9a92410be362
children 2d49adbd8992
line wrap: on
line diff
--- a/js/dnd-library.js	Fri Mar 13 19:34:05 2009 -0500
+++ b/js/dnd-library.js	Tue Mar 17 06:25:47 2009 -0500
@@ -49,7 +49,7 @@
     $editor.bind('wysiwygDetach', Drupal.behaviors.dndLibrary.detach_library);
 
     // Add preview behavior to editor items (thanks, BeautyTips!)
-    $('.editor-item', context).each(function () {
+    $('.editor-item', $this).each(function () {
       $(this).bt(Drupal.settings.dndLibraryPreviews[this.id], bt_settings);
       var hover_opts = $.extend({
         'interval': 500,
@@ -266,7 +266,7 @@
       // If the next item exists and isn't an editor representation, drop the
       // caret at the beginning of the element, otherwise make a new paragraph
       // to advance the caret to.
-      if (next && !$(next).hasClass('dnd-droped-wrapper')) {
+      if (next && !$(next).hasClass('dnd-dropped-wrapper')) {
         $(next).prepend('<span id="__caret">_</span>');
       }
       else {