Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"browse..." button JS error #34

Open
tkimnguyen opened this issue Mar 26, 2018 · 1 comment
Open

"browse..." button JS error #34

tkimnguyen opened this issue Mar 26, 2018 · 1 comment

Comments

@tkimnguyen
Copy link
Member

Plone 5.0.8, plone.formwidget.contenttree 1.0.15

The autocomplete function works with the text field, but when I click on the "browse..." button, I get this error in the Chrome (Version 65.0.3325.181 on macOS 10.13.4 Beta) console:

Uncaught TypeError: window.showDialog is not a function
    at HTMLInputElement.<anonymous> (@@oiestudyabroadstudent-controlpanel:3024)
    at HTMLInputElement.dispatch (jquery.js:4670)
    at HTMLInputElement.b.dispatch (plone-compiled.js:7509)
    at HTMLInputElement.r.handle (jquery.js:4338)

My code looks like this:

    widget(state_of_wisconsin_need_based_travel_grant_form=ContentTreeFieldWidget)
    state_of_wisconsin_need_based_travel_grant_form = schema.Choice(
        title=u'State of Wisconsin Need-based Travel Grant Form',
        description=u'select the PDF for this form',
        required=False,
        missing_value=None,
        default=None,
        source=UUIDSourceBinder(portal_type='File')
@laulaz
Copy link
Member

laulaz commented Oct 2, 2020

I can confirm the error on Plone 5.2.1 : JS / CSS files are not in registry.xml (but stil in portal_javascripts / portal_css), and leads to the same error (and non-working "Browse" button).

Note that even if those files are included in registry (I tried) :

  • the "Browse" modal does not react well with events (href changes when you try to select a node, ...) --> the JS code also needs to be fixed.
  • there is an error with missing node/item_icon in input_recurse.pt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants