toutpt / plonetheme.foundation

Foundation integration in Plone
1 stars 3 forks source link

TypeError: $(...).foundation is not a function #3

Open macagua opened 6 years ago

macagua commented 6 years ago

Hi @toutpt

When I added and enabled the plonetheme.foundation theme on Plone 4.3 latest version (4.3.17)

And look like this

captura de pantalla de 2018-05-13 10-58-37

and when debug from the web browser the consolo reported two error

(index):530 Uncaught TypeError: $(...).foundation is not a function
    at (index):530
comments.js:171 Uncaught TypeError: $(...).prepOverlay is not a function
    at comments.js:171
    at dispatch (++resource++plone.app.jquery.js:3)
    at i (++resource++plone.app.jquery.js:3)

Any idea how fixed the theme @toutpt ?

jmfrancois commented 6 years ago

This plugin override so many templates (it's so old ... ). The resource url of foundation should be good, so this is may be because some of the plone script has changed so prepOverlay don't exists any more ?

macagua commented 6 years ago

Hi @jmfrancois

Maybe .prepOverlay don't exists any more!!!, I will try to check what wrong with .prepOverlay

The plone.app.jquerytools package provides a “prepOverlay” plugin https://docs.plone.org/4/en/develop/addons/javascript.html#popup-overlays-and-forms