Index: avatar_selection.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/avatar_selection/avatar_selection.module,v
retrieving revision 1.1.2.22.2.26
diff -u -r1.1.2.22.2.26 avatar_selection.module
--- avatar_selection.module 7 Apr 2008 13:18:40 -0000 1.1.2.22.2.26
+++ avatar_selection.module 7 Apr 2008 14:15:36 -0000
@@ -184,7 +184,7 @@
   $js_settings = array(
     'num_images_per_page' => ($images_per_page ? $images_per_page : 1),
     'num_images' => $selects['total'],
-    'image_path' => file_create_path('avatar_selection'),
+    'image_url' => file_create_url(file_create_path('avatar_selection')),
     'images' => $selects['avatars_indexed'],
   );
   drupal_add_js(array('avatar_selection' => $js_settings), 'setting');
@@ -275,7 +275,7 @@
     $js_settings = array(
       'num_images_per_page' => ($images_per_page ? $images_per_page : 1),
       'num_images' => $selects['total'],
-      'image_path' => file_create_path('avatar_selection'),
+      'image_url' => file_create_url(file_create_path('avatar_selection')),
       'images' => $selects['avatars_indexed'],
     );
     drupal_add_js(array('avatar_selection' => $js_settings), 'setting');
@@ -826,7 +826,7 @@
       $js_settings = array(
         'num_images_per_page' => ($images_per_page ? $images_per_page : 1),
         'num_images' => $selects['total'],
-        'image_path' => file_create_path('avatar_selection'),
+        'image_url' => file_create_url(file_create_path('avatar_selection')),
         'images' => $selects['avatars_indexed'],
       );
       drupal_add_js(array('avatar_selection' => $js_settings), 'setting');
Index: js/avatar_selection.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/avatar_selection/js/Attic/avatar_selection.js,v
retrieving revision 1.1.2.1.4.6
diff -u -r1.1.2.1.4.6 avatar_selection.js
--- js/avatar_selection.js 4 Mar 2008 17:49:40 -0000 1.1.2.1.4.6
+++ js/avatar_selection.js 7 Apr 2008 14:15:36 -0000
@@ -48,8 +48,7 @@
       height: null,
       num_images_per_page: drupal_settings.num_images_per_page,
       num_images: drupal_settings.num_images,
-      image_path: drupal_settings.image_path,
-      base_path: Drupal.settings.basePath,
+      image_url: drupal_settings.image_url,
       images: drupal_settings.images
     }

@@ -109,7 +108,7 @@
           if (count < settings.num_images && count < max_image) {
             var image_name = settings.images[count];
             var input = '<input name="select_avatar" class="form-radio user_avatar_select" type="radio" value="'+ image_name +'">';
-            var image = '<img class="" alt="'+ image_name +'" title="'+ image_name +'" src="'+settings.base_path + settings.image_path +"/"+ image_name +'" />';
+            var image = '<img class="" alt="'+ image_name +'" title="'+ image_name +'" src="'+ settings.image_url +"/"+ image_name +'" />';

             $(this).find("label").html(input + image);
             $(this).show();
