Mercurial > defr > drupal > popups
comparison 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 |
comparison
equal
deleted
inserted
replaced
0:76f9b43738f2 | 2:c076d54409cb |
---|---|
1 Index: popups.js | |
2 =================================================================== | |
3 --- popups.js (révision 549) | |
4 +++ popups.js (copie de travail) | |
5 @@ -922,7 +922,7 @@ | |
6 popup.refocus(); | |
7 | |
8 // If the popups contains a form, capture submits. | |
9 - var $form = $('form', popup.$popupBody()); | |
10 + var $form = $('form:not(.no-popup)', popup.$popupBody()); | |
11 if ($form.length) { | |
12 $form.ajaxForm({ | |
13 dataType: 'json', |