changeset 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 5efa741592f9
children be7efc2a145e
files popups.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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',