[Product-Developers] plone.app, jquerytools - beforepost/afterpost

Steve McMahon steve at dcn.org
Tue Feb 16 15:48:50 UTC 2010


It's broken. I should be committing a fix today.

2010/2/15 Radim Novotny <novotny.radim at gmail.com>

> Hi all,
>
> I'm trying to use beforepost/afterpost hooks in the recent
> plone.app.jquerytools prepOverlay method, but without success.
>
> I'm using the following definition:
>
>    jq("a.add-record").prepOverlay({
>       subtype:'ajax',
>       urlmatch:'$', urlreplace:' #region-content>*',
>       formselector:'form',
>       noform: 'reload',
>       closeselector:'[name=form.button.Cancel]',
>       afterpost: function(data) { alert('blah') }
>   });
>
> but "nothing" happens. I've tried to debug it using Firebug, but it seems
> beforepost/afterpost definitions are not transferred through el.data().
>
> Anyone has working example of this feature, please ?
>
> Thanks
> Radim
>
>
> _______________________________________________
> Product-Developers mailing list
> Product-Developers at lists.plone.org
> http://lists.plone.org/mailman/listinfo/product-developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20100216/a12a7171/attachment.html>


More information about the Product-Developers mailing list