From be0e2d7df0ebf97a9eaadf4a133da61685cdda1d Mon Sep 17 00:00:00 2001 From: Bart Van Der Meerssche Date: Thu, 1 Oct 2009 10:04:02 +0000 Subject: [PATCH] web: no HTML anchor should be added when image.editable is false --- web/drupal/modules/image_annotate/image_annotate.module | 1 + web/drupal/modules/image_annotate/tag.js | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) 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(); };