Mercurial > defr > drupal > popups
comparison patches/6-deal-with-onUpdate-correctly.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 638) | |
4 +++ popups.js (copie de travail) | |
5 @@ -77,7 +77,7 @@ | |
6 */ | |
7 Popups.defaultOptions = { | |
8 doneTest: null, // null, *path*, *regexp*. how do we know when a multiform flow is done? | |
9 - updateMethod: 'ajax', // none, ajax, reload, *callback* | |
10 + updateMethod: 'ajax', // none, ajax, reload, callback | |
11 updateSource: 'initial', // initial, final. Only used if updateMethod != none. | |
12 href: null, | |
13 width: null, // Override the width specified in the css. | |
14 @@ -86,7 +86,8 @@ | |
15 reloadOnError: false, // Force the entire page to reload if the popup href is unaccessable. | |
16 noMessage: false, // Don't show drupal_set_message messages. | |
17 skipDirtyCheck: false, // If true, this popup will not check for edits on the originating page. | |
18 - hijackDestination: true // Use the destiination param to force a form submit to return to the originating page. | |
19 + hijackDestination: true, // Use the destiination param to force a form submit to return to the originating page. | |
20 + onUpdate: null // Callback used for the updateMethod: 'callback' type | |
21 }; | |
22 | |
23 // *************************************************************************** |