diff --git a/web/drupal/modules/image_annotate/image_annotate.module b/web/drupal/modules/image_annotate/image_annotate.module index 201cfd3..40c9453 100644 --- a/web/drupal/modules/image_annotate/image_annotate.module +++ b/web/drupal/modules/image_annotate/image_annotate.module @@ -172,6 +172,7 @@ function theme_image_annotate_formatter_image_annotate($element) { 'editable' => user_access('administer image annotations') || user_access('create image annotations'), )); + module_load_include('module', 'jquery_ui'); // Load all the JS and CSS magic drupal_add_js(array('imageAnnotate' => $settings), 'setting'); jquery_ui_add(array('ui.resizable', 'ui.draggable')); diff --git a/web/drupal/modules/image_annotate/tag.js b/web/drupal/modules/image_annotate/tag.js index 4686cbd..b65137a 100644 --- a/web/drupal/modules/image_annotate/tag.js +++ b/web/drupal/modules/image_annotate/tag.js @@ -74,9 +74,6 @@ Drupal.annotativeImage = function (image) { }); this.image.before(this.button); } - else { - this.image.before($('')); - } // Hide the original this.image.hide(); };