Index: avatar_selection.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/avatar_selection/avatar_selection.module,v
retrieving revision 1.1.2.20.2.15
diff -u -r1.1.2.20.2.15 avatar_selection.module
--- avatar_selection.module 7 Apr 2008 13:19:03 -0000 1.1.2.20.2.15
+++ avatar_selection.module 7 Apr 2008 14:16:35 -0000
@@ -178,8 +178,7 @@
$js_settings = array(
'num_images_per_page' => ($images_per_page ? $images_per_page : 1),
'num_images' => $selects['total'],
- 'base_path' => base_path(),
- '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');
@@ -213,8 +212,7 @@
$js_settings = array(
'num_images_per_page' => ($images_per_page ? $images_per_page : 1),
'num_images' => $selects['total'],
- 'base_path' => base_path(),
- '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');
@@ -745,8 +743,7 @@
$js_settings = array(
'num_images_per_page' => ($images_per_page ? $images_per_page : 1),
'num_images' => $selects['total'],
- 'base_path' => base_path(),
- '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.2.4
diff -u -r1.1.2.1.2.4 avatar_selection.js
--- js/avatar_selection.js 4 Mar 2008 17:49:26 -0000 1.1.2.1.2.4
+++ js/avatar_selection.js 7 Apr 2008 14:16:35 -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.base_path,
+ 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 = '';
- var image = '';
+ var image = '';
$(this).find("label").html(input + image);
$(this).show();