Mercurial > defr > drupal > popups
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/patches/6-deal-with-onUpdate-correctly.patch Fri Dec 31 13:46:12 2010 +0100 @@ -0,0 +1,23 @@ +Index: popups.js +=================================================================== +--- popups.js (révision 638) ++++ popups.js (copie de travail) +@@ -77,7 +77,7 @@ + */ + Popups.defaultOptions = { + doneTest: null, // null, *path*, *regexp*. how do we know when a multiform flow is done? +- updateMethod: 'ajax', // none, ajax, reload, *callback* ++ updateMethod: 'ajax', // none, ajax, reload, callback + updateSource: 'initial', // initial, final. Only used if updateMethod != none. + href: null, + width: null, // Override the width specified in the css. +@@ -86,7 +86,8 @@ + reloadOnError: false, // Force the entire page to reload if the popup href is unaccessable. + noMessage: false, // Don't show drupal_set_message messages. + skipDirtyCheck: false, // If true, this popup will not check for edits on the originating page. +- hijackDestination: true // Use the destiination param to force a form submit to return to the originating page. ++ hijackDestination: true, // Use the destiination param to force a form submit to return to the originating page. ++ onUpdate: null // Callback used for the updateMethod: 'callback' type + }; + + // ***************************************************************************