easychart icon indicating copy to clipboard operation
easychart copied to clipboard

Error when adding a Drupal Preset

Open curtisgrife opened this issue 9 years ago • 0 comments

Hi,

Not sure if this issue should be added here or in the Drupal issue queue.

I've been trying to change the default credit text and link in the easychart admin interface: /admin/config/media/easychart/presets

I'm adding this as text : "credits":{"text":"EXAMPLE.COM","href":"http://example.com"}

When I save this as a preset and then got to view the charts they no longer appear and I receive this error:

Uncaught SyntaxError: missing ) after argument list

It seems like there's extra brackets being added to the end or something:

window.easychart.setPresets("credits":{"text":"EXAMPLE.COM","href":"http://example.com"});})

Maybe I'm not formatting the credit options properly?

I'm using easychart version 3.1.4.

Let me know if any other information is needed.

Thanks!

https://www.drupal.org/node/2841105

curtisgrife avatar Jan 09 '17 16:01 curtisgrife