Index: image_annotate.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/image_annotate/image_annotate.module,v
retrieving revision 1.1
diff -u -p -r1.1 image_annotate.module
--- image_annotate.module	26 Jun 2008 06:43:15 -0000	1.1
+++ image_annotate.module	14 Jan 2009 19:56:05 -0000
@@ -22,8 +22,8 @@ function image_annotate_nodeapi(&$node, 
       case 'load':
         $result = db_query("SELECT note, uid FROM {image_annotate} WHERE vid = %d", $node->vid);
         while ($anotation = db_fetch_object($result)) {          
-          $node->image_annotate_note[] = $anotation['note'];
-          $node->image_annotate_uid[] = $anotation['uid'];
+          $node->image_annotate_note[] = $anotation->note;
+          $node->image_annotate_uid[] = $anotation->uid;
         }
         break;
         
@@ -35,6 +35,7 @@ function image_annotate_nodeapi(&$node, 
             '  IA_settings.vid = '. $node->vid .';'."\n".
             '</script>'."\n"
           );
+          variable_set('jquery_update_compression_type', 'none');
           jquery_ui_add(array('ui.resizable', 'ui.draggable')); 
           drupal_add_js(drupal_get_path('module', 'image_annotate') .'/tag.js');
           drupal_add_css(drupal_get_path('module', 'image_annotate') .'/tag.css');
@@ -159,4 +160,4 @@ function _image_annotate_canvas() {
 function _image_annotate_note_delete() {
   db_query('DELETE FROM {image_annotate} WHERE aid=%d', $_GET['aid']);
   drupal_json(array('status' => 'success'));
-}
\ No newline at end of file
+}
Index: tag.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/image_annotate/tag.js,v
retrieving revision 1.1
diff -u -p -r1.1 tag.js
--- tag.js	26 Jun 2008 06:43:15 -0000	1.1
+++ tag.js	14 Jan 2009 19:56:05 -0000
@@ -16,7 +16,7 @@ $(document).ready(function() {
     $('.image').hide();
 	
     // Load the overall html code for the notes
-    $('#image-annotate-wrapper').load('/image-annotate/view-canvas', {}, function() { 
+    $('#image-annotate-wrapper').load(Drupal.settings.basePath + 'image-annotate/view-canvas', {}, function() { 
 	  $('#image-annotate-edit').css( { width: IA_settings.width +'px', height: IA_settings.height +'px' } );
 	  $('#image-annotate-view').css( { width: IA_settings.width +'px', height: IA_settings.height +'px' } );
 	  
@@ -34,7 +34,7 @@ $(document).ready(function() {
       );
 	  
 	  // Load the notes
-      $('#image-annotate-view').load('/image-annotate/view-notes', {vid: IA_settings.vid}, image_annotate_intialize_notes);
+      $('#image-annotate-view').load(Drupal.settings.basePath + 'image-annotate/view-notes', {vid: IA_settings.vid}, image_annotate_intialize_notes);
       image_annotate_intialize_notes();
 	
       // Retrieve the border widths
@@ -145,11 +145,11 @@ function image_annotate_initialize_note_
     };
     if (IA_settings.aid) {
       data.aid = IA_settings.aid;
-      var url = '/image-annotate/edit'; 
+      var url = Drupal.settings.basePath + 'image-annotate/edit'; 
 	}
 	else {
       data.vid = IA_settings.vid;
-	  var url = '/image-annotate/create';
+	  var url = Drupal.settings.basePath + 'image-annotate/create';
 	}
     $.ajax({
       url: url,
@@ -164,7 +164,7 @@ function image_annotate_initialize_note_
       success: function (data, textStatus) {
         IA_settings.edit = false;
         $('#image-annotate-edit').hide();
-        $('#image-annotate-view').load('/image-annotate/view-notes', {vid: IA_settings.vid}, image_annotate_intialize_notes);
+        $('#image-annotate-view').load(Drupal.settings.basePath + 'image-annotate/view-notes', {vid: IA_settings.vid}, image_annotate_intialize_notes);
         image_annotate_intialize_notes();
         return false;
       }
@@ -174,7 +174,7 @@ function image_annotate_initialize_note_
   
   $('#image-annotate-edit input.delete').click(function() {
     $.ajax({
-      url: '/image-annotate/delete',
+      url: Drupal.settings.basePath + 'image-annotate/delete',
       type: 'GET',
       data: data = {aid: IA_settings.aid},
       dataType: 'json',
@@ -186,7 +186,7 @@ function image_annotate_initialize_note_
       success: function (data, textStatus) {
         IA_settings.edit = false;
 		$('#image-annotate-edit').hide();
-        $('#image-annotate-view').load('/image-annotate/view-notes', {vid: IA_settings.vid}, image_annotate_intialize_notes);
+        $('#image-annotate-view').load(Drupal.settings.basePath + 'image-annotate/view-notes', {vid: IA_settings.vid}, image_annotate_intialize_notes);
 	    image_annotate_intialize_notes();
 		return false;
       }
@@ -266,4 +266,4 @@ function image_annotate_resize_update(ev
       top: IA_settings.editMargin + note.height + note.top
     });
   }
-}
\ No newline at end of file
+}
