From 033273b62d2bc5aca6e417e7e4b5cf1a0fe1640c Mon Sep 17 00:00:00 2001
From: webchick <webchick@24967.no-reply.drupal.org>
Date: Wed, 7 Aug 2013 12:52:15 -0700
Subject: [PATCH] Issue #2057725 by tim.plunkett, quicksketch: Fixed Regular
 forms cannot be submitted when used as modal forms.

---
 core/misc/dialog.ajax.js | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/core/misc/dialog.ajax.js b/core/misc/dialog.ajax.js
index 8bb659928d0a..c56515b6cf42 100644
--- a/core/misc/dialog.ajax.js
+++ b/core/misc/dialog.ajax.js
@@ -33,9 +33,6 @@
         }
       }
     },
-    detach: function (context, settings) {
-      $(context).find('form').off('submit.dialogSubmit');
-    },
 
     /**
      * Scan a dialog for any primary buttons and move them to the button area.
@@ -69,12 +66,6 @@
           }
         });
       });
-      if ($buttons.length) {
-        $dialog.find('form').on('submit.dialogSubmit', function (e) {
-          $buttons.first().trigger('click');
-          e.preventDefault();
-        });
-      }
       return buttons;
     }
   };
-- 
GitLab