Index: includes/ajax.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/ctools/includes/ajax.inc,v
retrieving revision 1.14.2.1
diff -u -r1.14.2.1 ajax.inc
--- includes/ajax.inc	1 Oct 2009 21:34:36 -0000	1.14.2.1
+++ includes/ajax.inc	7 Dec 2009 18:33:14 -0000
@@ -473,7 +473,12 @@
     //Create a unique ID to associate $form_element and hidden elements since we dont have an ID
     $form_element['#id'] = uniqid('ctools-ajax-url-');
 
-    $form_element['#attributes']['class'] = $type;
+    if (empty($form_element['#attributes']['class'])) {
+      $form_element['#attributes']['class'] = $type;
+    }
+    else {
+      $form_element['#attributes']['class'] .= " $type";
+    }
   }
 
   //Add hidden form element to hold base URL
