I added some additional javascript in the "additional options" field, like localization, prioritization etc.
The javascript parameters also show up in the sourcecode, but they have no effect whatsoever.
Cleared all Drupal and my browser caches several times ran cron and update.php.
Anybody has the same problem?
Comments
Comment #1
micropat commentedCould have been a JavaScript conflict, but no other reports of this. If it's still a problem please post again. Thanks!
Comment #2
robpomeroy commentedSame issue here. In the error console, Firefox throws "a2a_config is not defined". Looking at the code for the page, I see (having tidied up the code slightly for ease of reading):
It looks to me like the external javascript (which defines a2a_config) should be included before the customisation but for some reason it's coming in afterwards.
Comment #3
robpomeroy commentedPS: Adding "var a2a_config=a2a_config||{};" (the first declaration in the external js) at the start of the Additional Options creates a fudged fix of sorts.
Comment #4
Fidelix commentedWell, i've got the same problem here.
Subscribing.
Editing... my syntax was wrong. It is working fine.
Comment #5
micropat commentedAddToAny recommends this syntax in the documentation:
var a2a_config = a2a_config || {};The next plugin release will include this so you don't have to. FYI old global variables are backwards-compatible with the new API syntax, so no worries if you're using some of the old variables.