view patches/4-allow-form-to-opt-out-of-ajaxform.patch @ 2:c076d54409cb

Popus: Version RF
author Franck Deroche <franck@defr.org>
date Fri, 31 Dec 2010 13:46:12 +0100
parents
children
line wrap: on
line source
Index: popups.js
===================================================================
--- popups.js	(révision 549)
+++ popups.js	(copie de travail)
@@ -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',