plone / plone.formwidget.autocomplete

z3c.form widget for Plone using jQuery Autocomplete
https://pypi.org/project/plone.formwidget.autocomplete
2 stars 12 forks source link

Handle case where server responds with 204 No Content #3

Closed izak closed 11 years ago

izak commented 11 years ago

If the server responds with 204 No Content, then jquery passes an object to the success handler, instead of the string you'd expect. We therefore need to check that what we're asked to parse is indeed a string.