networkteam / Networkteam.Neos.Shariff

Integrate Shariff, social buttons with privacy into Neos CMS
GNU General Public License v2.0
7 stars 13 forks source link

error $ is not a function. (ln '$(".shariff")'.... #9

Closed stefkey closed 8 years ago

stefkey commented 8 years ago

Hi Networkteam,

my browser (dev-tools) shows an error: $ is not a function. (In '$(".shariff")', '$' is "query")

in this file: Resources/Public/shariff/build/shariff.min.js

Is that a bug? How can I fix it?

monofone commented 8 years ago

Hey, jquery is missing, alternately you can include the shariff.complete.js, you can do this by altering the TS.

prototype(TYPO3.Neos:Page) {
    body.javascripts {
        shariff = TYPO3.TypoScript:Tag {
            tagName = 'script'
            attributes {
                src = TYPO3.TypoScript:ResourceUri {
                    path = 'resource://Networkteam.Neos.Shariff/Public/shariff/build/shariff.complete.js'
stefkey commented 8 years ago

Thanks a lot! It works!