### Eclipse Workspace Patch 1.0
#P drupal
Index: sites/tdclighthouse/modules/ajax/plugins/remove_form/ajax_remove_form.js
===================================================================
--- sites/tdclighthouse/modules/ajax/plugins/remove_form/ajax_remove_form.js	(revision 0)
+++ sites/tdclighthouse/modules/ajax/plugins/remove_form/ajax_remove_form.js	(revision 0)
@@ -0,0 +1,11 @@
+Drupal.Ajax.plugins.remove_form = function(hook, args) {
+  if (hook === 'afterMessage') {
+    if (args.options.remove_form === true) {
+      var form = args.local.form;
+      var el = form.find('div').not('.messages');
+      el.fadeOut(500, function() {
+        $(this).remove();
+      });
+    }
+  }
+}
\ No newline at end of file
Index: sites/tdclighthouse/modules/ajax/plugins/remove_form/ajax_remove_form.module
===================================================================
--- sites/tdclighthouse/modules/ajax/plugins/remove_form/ajax_remove_form.module	(revision 0)
+++ sites/tdclighthouse/modules/ajax/plugins/remove_form/ajax_remove_form.module	(revision 0)
@@ -0,0 +1,13 @@
+<?php
+function ajax_remove_form_preprocess_page(&$variables) {
+  drupal_add_js(drupal_get_path('module', 'ajax_remove_form') .
+    '/ajax_remove_form.js', 'theme');
+  return TRUE;
+}
+
+/**
+ * Ajax admin options callback
+ */
+function ajax_remove_form_ajax_options(&$options) {
+  return TRUE;
+}
\ No newline at end of file
Index: sites/tdclighthouse/modules/ajax/plugins/remove_form/ajax_remove_form.info
===================================================================
--- sites/tdclighthouse/modules/ajax/plugins/remove_form/ajax_remove_form.info	(revision 0)
+++ sites/tdclighthouse/modules/ajax/plugins/remove_form/ajax_remove_form.info	(revision 0)
@@ -0,0 +1,5 @@
+name = Ajax plugin - remove form
+description = Remove form after submit javascript
+package = Ajax
+dependencies[] = ajax
+core = 6.x
\ No newline at end of file
