Index: CHANGELOG.txt
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/compact_forms/CHANGELOG.txt,v
retrieving revision 1.1.2.5
diff -u -p -r1.1.2.5 CHANGELOG.txt
--- CHANGELOG.txt	6 May 2009 23:18:33 -0000	1.1.2.5
+++ CHANGELOG.txt	6 May 2009 23:30:07 -0000
@@ -6,6 +6,7 @@ Compact Forms x.x-x.x, xxxx-xx-xx
 
 Compact Forms 5.x-1.x, xxxx-xx-xx
 ---------------------------------
+#452946 by sun: Fixed $form['#id'] not respected when testing form ids.
 #452946 by sun: Fixed stale invocation of JS loading in hook_menu().
 
 
Index: compact_forms.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/compact_forms/compact_forms.module,v
retrieving revision 1.2.2.4
diff -u -p -r1.2.2.4 compact_forms.module
--- compact_forms.module	6 May 2009 23:18:33 -0000	1.2.2.4
+++ compact_forms.module	6 May 2009 23:29:29 -0000
@@ -70,7 +70,7 @@ function compact_forms_form_alter($form_
     $descriptions = variable_get('compact_forms_descriptions', 1);
   }
 
-  if (in_array($form_id, $form_ids)) {
+  if (in_array($form_id, $form_ids) || (isset($form['#id']) && in_array($form['#id'], $css_ids))) {
     // Load our page requisites and JavaScript settings.
     if (!isset($loaded)) {
       _compact_forms_include_js($css_ids);
