Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Javascript error error: Uncaught SyntaxError: Unexpected token & #35

Open
clwillingham opened this issue Nov 14, 2017 · 1 comment
Open

Comments

@clwillingham
Copy link

in rails 5.1.4
when the jcrop options is set as

field :poster do
  jcrop_options aspectRatio: 500.0/320.0
end

the jcrop_options javascript line is rendered as

var rails_admin_jcrop_options = "aspectRatio: 500/320";

this could be related to this: haml/haml#940

clwillingham added a commit to clwillingham/rails_admin_jcrop that referenced this issue Nov 14, 2017
@Cremz
Copy link

Cremz commented Nov 14, 2017

just wanted to try this gem and ran into the same issue. does your fix actually work @clwillingham ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants