Running Javascript after Ajax-request does not work #1288

Closed
DarthMax opened this Issue Aug 22, 2012 · 1 comment

Projects

None yet

2 participants

@DarthMax
Contributor

I am using RailsAdmin-MapField to display a LatLon-Pair in Railsadmin. Its working fine if the page that shows the Map is loaded completely (e.g by reloading the page via "F5"). But when the edit page is called via Ajax request I get an JavaScript-Error:

ReferenceError: google is not defined

In fact the needed JavaScript file from google is loaded by the browser, but it seems that it is not parsed.
I have tried this with a clean RailsApp and this reproduces the error.

I am running into the same problem, when I try to add JavaScript-Code to a Custom Action. The JavaScript added to the view is not called, when I call the page via Ajax request.

I'm running on rails 3.2.7 and the latest railsadmin version

Collaborator

Yeah, rails_admin_map_field appears to be not up to RailsAdmin's Pjax utilization.
Please submit issue to rails_admin_map_field developers.
It is maintained independently by different maintainers.

@mshibuya mshibuya closed this Oct 25, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment