diff 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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/4-allow-form-to-opt-out-of-ajaxform.patch	Fri Dec 31 13:46:12 2010 +0100
@@ -0,0 +1,13 @@
+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',