inline javascript in widgets does not get rendered when p.a.jquerytools is used (for example in p.a.registry)

Bug #909011 reported by Domen Kožar on 2011-12-27
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
z3c.form
Undecided
Unassigned

Bug Description

p.a.jquerytools strips out inline javascript on ajax requests:

https://github.com/plone/plone.app.jquerytools/blob/master/plone/app/jquerytools/browser/overlayhelpers.js#L350

When used with p.a.registry it uses p.a.jquerytools to display forms to users, but widgets as OrderedSelectWidget are unsuable with stripped javascript.

This would require z3c.form to ship with GS and registered javascript files. Would that be OK?

Stephan Richter (srichter) wrote :

What is GS?

I would like to make this configurable, since inserting additional JS files into a template is outside the scope of the form and requires a specific configuration of the app.

Alternatively, you could provide (as part of z3c.form) an alternative template for the orderedselect widget and a JS file.

I am open to look at a patch.

Changed in z3c.form:
status: New → Opinion
Domen Kožar (ielectric+) wrote :

a) provide Products.GenericSetup profile with javascript resources

b) provide a hook so Plone integration pacakges can register GS profile through that hook.

On Wednesday, January 04, 2012 01:27:51 PM Domen Kožar wrote:
> a) provide Products.GenericSetup profile with javascript resources
>
> b) provide a hook so Plone integration pacakges can register GS profile
> through that hook.

This really does not belong into z3c.form. It should go into a z3c.form
integration package like plone.z3cform.

Regards,
Stephan
--
Entrepreneur and Software Geek
Google me. "Zope Stephan Richter"

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers