agorapulse / grails-facebook-sdk

Facebook SDK Grails Plugin
http://agorapulse.github.com/grails-facebook-sdk/guide
30 stars 13 forks source link

Added feature 'customSelector' to modify the jQuery-selector name. Just ... #68

Closed PatrickHuetter closed 10 years ago

PatrickHuetter commented 10 years ago

...use customSelector='jQuery' attribute in your taglib.

For example:

<facebook:initJS customSelector="jQuery" appId="${facebookContext.app.id}" />

This will render the javascript with jQuery(...) instead of $(...). Defaults to $, if nothing is given.

benorama commented 10 years ago

I'm going to update the doc, add a default customSelector in Config (so that you can define once) and I will release a new version in the coming days. Thanks !