? .cvsignore
? privatemsg-634194_0.patch
? privatemsg_list_js_fixes.patch
Index: privatemsg-list.js
===================================================================
RCS file: /cvs/drupal/contributions/modules/privatemsg/Attic/privatemsg-list.js,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 privatemsg-list.js
--- privatemsg-list.js	10 Apr 2009 15:26:53 -0000	1.1.2.1
+++ privatemsg-list.js	23 Nov 2009 13:15:54 -0000
@@ -1,3 +1,7 @@
-Drupal.behaviors.hideButtons = function (context) {
- $("input.privatemsg-action-button").hide();
-};
\ No newline at end of file
+Drupal.behaviors.actionButtons = function (context) {
+  $("div.privatemsg-op-button").hide();
+
+  $('#privatemsg-list #edit-operation').change(function () {
+    $('#edit-submit').click();
+  });
+};
Index: privatemsg.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/privatemsg/privatemsg.module,v
retrieving revision 1.70.2.30.2.91.2.98
diff -u -p -r1.70.2.30.2.91.2.98 privatemsg.module
--- privatemsg.module	19 Nov 2009 21:35:24 -0000	1.70.2.30.2.91.2.98
+++ privatemsg.module	23 Nov 2009 13:15:54 -0000
@@ -2037,16 +2037,16 @@ function _privatemsg_action_form() {
       '#type'          => 'select',
       '#options'       => $options,
       '#default_value' => 0,
-      // Execute the submit button if a operation has been selected.
-      '#attributes'    => array('onchange' => "$('#edit-submit').click()"),
   );
   $form['submit'] = array(
+      '#prefix'     => '<div class="privatemsg-op-button">',
+      '#suffix'    => '</div>',
       '#type'       => 'submit',
       '#value'      => t('Execute'),
       '#submit'     => array('privatemsg_list_submit'),
       '#attributes' => array('class' => 'privatemsg-action-button'),
   );
-  // JS for hiding the execute button(s)
+  // JS for hiding the execute button.
   drupal_add_js(drupal_get_path('module', 'privatemsg') .'/privatemsg-list.js');
   return $form;
 }
Index: privatemsg_filter/privatemsg-filter-list.js
===================================================================
RCS file: privatemsg_filter/privatemsg-filter-list.js
diff -N privatemsg_filter/privatemsg-filter-list.js
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ privatemsg_filter/privatemsg-filter-list.js	23 Nov 2009 13:15:54 -0000
@@ -0,0 +1,12 @@
+Drupal.behaviors.tagActionButtons = function (context) {
+  $("div.privatemsg-tag-add-submit").hide();
+  $("div.privatemsg-tag-remove-submit").hide();
+
+  $('#privatemsg-list #edit-tag-add').change(function () {
+    $('#edit-tag-add-submit').click();
+  });
+
+  $('#privatemsg-list #edit-tag-remove').change(function () {
+    $('#edit-tag-remove-submit').click();
+  });
+};
Index: privatemsg_filter/privatemsg_filter.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/privatemsg/privatemsg_filter/privatemsg_filter.module,v
retrieving revision 1.1.2.29
diff -u -p -r1.1.2.29 privatemsg_filter.module
--- privatemsg_filter/privatemsg_filter.module	19 Nov 2009 20:32:43 -0000	1.1.2.29
+++ privatemsg_filter/privatemsg_filter.module	23 Nov 2009 13:15:54 -0000
@@ -511,29 +511,32 @@ function privatemsg_filter_form_privatem
       '#type'          => 'select',
       '#options'       => $options,
       '#default_value' => 0,
-      // Execute the submit button if a operation has been selected.
-      '#attributes'    => array('onchange' => "$('#edit-tag-add-submit').click()"),
     );
     $form['actions']['tag-add-submit'] = array(
+        '#prefix'     => '<div class="privatemsg-tag-add-submit">',
+        '#suffix'    => '</div>',
         '#type'       => 'submit',
-        '#value'      => t('Apply tag'),
+        '#value'      => t('Apply Tag'),
         '#submit'     => array('privatemsg_filter_add_tag_submit'),
         '#attributes' => array('class' => 'privatemsg-action-button'),
     );
-    $options[0] = t('Remove tag...');
+    $options[0] = t('Remove Tag...');
     $form['actions']['tag-remove'] = array(
       '#type'          => 'select',
       '#options'       => $options,
       '#default_value' => 0,
-      // Execute the submit button if a operation has been selected.
-      '#attributes'    => array('onchange' => "$('#edit-tag-remove-submit').click()"),
     );
     $form['actions']['tag-remove-submit'] = array(
+        '#prefix'     => '<div class="privatemsg-tag-remove-submit">',
+        '#suffix'    => '</div>',
         '#type'       => 'submit',
-        '#value'      => t('Remove tag'),
+        '#value'      => t('Remove Tag'),
         '#submit'     => array('privatemsg_filter_remove_tag_submit'),
         '#attributes' => array('class' => 'privatemsg-action-button'),
     );
+
+    // JS for hiding the submit buttons.
+    drupal_add_js(drupal_get_path('module', 'privatemsg_filter') .'/privatemsg-filter-list.js');
   }
 }
 
