Index: tag.js =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/image_annotate/tag.js,v retrieving revision 1.6 diff -u -p -r1.6 tag.js --- tag.js 30 Jan 2009 06:49:42 -0000 1.6 +++ tag.js 16 Sep 2009 16:51:50 -0000 @@ -102,11 +108,11 @@ Drupal.annotativeImage.prototype.addNote // Create/prepare the editable note elements var editable = new Drupal.imageAnnotationEditable(this); // Load the form and set the draggable/resizable area - editable.note.load('/image-annotate/create/' + this.nid, {}, function() { + editable.note.load(Drupal.settings.basePath + 'content/image-annotate/create/' + this.nid, {}, function() { Drupal.behaviors.collapse(editable.note); var form = $('#image-annotate-edit-form form'); // TODO: remove these *EVIL* fixes - form.attr('action', '/comment/reply/'+ image.nid); /* Evil! */ + form.attr('action', Drupal.settings.basePath + 'comment/reply/' + image.nid); /* Evil! */ $('#image-annotate-edit-form input').attr('for', ''); /* Kicking babies evil! */ // Add the image note information to the form action on submission form.submit(function() { @@ -218,11 +224,11 @@ Drupal.imageAnnotation.prototype.edit = // Create/prepare the editable note elements var editable = new Drupal.imageAnnotationEditable(this.image, this); // Load the form and set the draggable/resizable area - editable.note.load('/image-annotate/edit/' + this.aid, {}, function() { + editable.note.load(Drupal.settings.basePath + 'content/image-annotate/edit/' + this.aid, {}, function() { Drupal.behaviors.collapse(editable.note); var form = $('#image-annotate-edit-form form'); // TODO: remove these *EVIL* fixes - form.attr('action', '/comment/edit/'+ note.cid); /* Evil! */ + form.attr('action', Drupal.settings.basePath + 'comment/edit/'+ note.cid); /* Evil! */ $('#image-annotate-edit-form input').attr('for', ''); /* Kicking babies evil! */ // Add the image note information to the form action on submission form.submit(function() {