diff popups.js @ 4:09e998f65556

Provides a mechanism for a form to explicitely opt out of being ajaxForm-ed
author Franck Deroche <franck@defr.org>
date Fri, 31 Dec 2010 14:03:41 +0100
parents 4215c43e74eb
children be7efc2a145e
line wrap: on
line diff
--- a/popups.js	Fri Dec 31 14:02:22 2010 +0100
+++ b/popups.js	Fri Dec 31 14:03:41 2010 +0100
@@ -922,7 +922,7 @@
   popup.refocus();
 
   // If the popups contains a form, capture submits.
-  var $form = $('form', popup.$popupBody());
+  var $form = $('form:not(.no-popup)', popup.$popupBody());
   if ($form.length) {
     $form.ajaxForm({
       dataType: 'json',