Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-Reordering the div position to be in the beginning of the file before t... #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

minakolta
Copy link

Using the map field raised an error in the first load of the partial "google is not defined".
i had to refresh the page to get the map shown as the js files from google are already loaded,
I had to modify the app / views / rails_admin / main / _form_map.html.haml to place the div element

%div.ramf-map-container{:id => field.dom_name, :style => "width:300px;height:200px"}
= form.send :hidden_field, field.name, :id => field.latitude_dom_name
= form.send :hidden_field, field.longitude_field, :id => field.longitude_dom_name

to the beginning of the file before loading the js

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

Successfully merging this pull request may close these issues.

1 participant