diff --git a/app/views/admin/property_hires/manage_locations.html.erb b/app/views/admin/property_hires/manage_locations.html.erb index 5fd15f7..a8948fe 100644 --- a/app/views/admin/property_hires/manage_locations.html.erb +++ b/app/views/admin/property_hires/manage_locations.html.erb @@ -78,4 +78,10 @@ $("#location-modal .modal-body").html(data); }) }) + $('[data-target="#edit-location-modal"]').on("click",function(){ + var url = $(this).attr("href"); + $.get(url).done(function(data){ + $("#edit-location-modal .modal-body").html(data); + }) + }) \ No newline at end of file