Index: uc_aac.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/uc_aac/uc_aac.module,v
retrieving revision 1.10
diff -u -p -r1.10 uc_aac.module
--- uc_aac.module	4 Nov 2009 19:04:50 -0000	1.10
+++ uc_aac.module	7 Nov 2009 01:13:07 -0000
@@ -39,7 +39,7 @@ function uc_aac_form_alter(&$form, $form
     drupal_add_js('misc/jquery.form.js');
     drupal_add_js(drupal_get_path('module', 'uc_aac') .'/uc_aac.js');
     // Call uc_aac_calculate once for each form on page load
-    drupal_add_js("$('.attributes').find('select:first').each(function(i) { uc_aac_calculate(this); });", 'inline', 'footer');
+    drupal_add_js("$('.attributes').find('[@name^=attributes]:first').each(function(i) { uc_aac_calculate(this); });", 'inline', 'footer');
 
     // If reprice is enabled and price adjustments are to be displayed
     if (variable_get('uc_aac_reprice', 1) == 1 && variable_get('uc_attribute_option_price_format', 'adjustment') == 'adjustment') {
@@ -47,14 +47,14 @@ function uc_aac_form_alter(&$form, $form
       if (isset($form['#parameters'][2]->attributes)) {
         $nid = $form['nid']['#value'];
         $form['qty']['#default_value'] = $form['#parameters'][2]->default_qty;
-  
+
         foreach (element_children($form['attributes']) as $aid) {
           $selected_oid = $form['#parameters'][2]->attributes[$aid]->default_option;
           $form['attributes'][$aid]['#default_value'] = $selected_oid;
-  
+
           // Reset options for each $aid
           $options = array();
-  
+
           foreach ($form['#parameters'][2]->attributes[$aid]->options as $option) {
             $price = $option->price - $form['#parameters'][2]->attributes[$aid]->options[$selected_oid]->price;
             $options[$option->oid] = $option->name . ($price != 0 ? ', '. ($price > 0 ? '+' : '') . uc_currency_format($price) : '');
