Skip to content

Commit

Permalink
Reload map marker widget to display map on issue when loaded in dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyxelio committed Feb 10, 2016
1 parent 931da13 commit 461cb04
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/assets/javascripts/map_marker.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,12 @@
@element.val JSON.stringify(@marker.toGeoJSON())
true

$(document).ready ->
$("input[data-map-marker]").each ->
$.loadMapMarker = ->
$("*[data-map-marker]").each ->
$(this).mapmarker()
return

$(document).ready $.loadMapMarker
$(document).on "page:load cocoon:after-insert cell:load dialog:show", $.loadMapMarker

) jQuery

0 comments on commit 461cb04

Please sign in to comment.