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