Skip to content

Commit

Permalink
Merge pull request #103 from ismailsunni/develop
Browse files Browse the repository at this point in the history
Fix #100
  • Loading branch information
ismailsunni committed Aug 18, 2015
2 parents 1d6043d + d65bd09 commit 621f19a
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ var event_layer = new L.LayerGroup();
var pie_chart;


function normalize_json_string(string){
return string.replace(/\n/g, '<br>').slice(6, -6)
}

function create_icon(raw_event_icon){
return L.icon({
iconUrl: raw_event_icon,
Expand Down Expand Up @@ -194,8 +198,8 @@ function show_event_detail(event){
$('#event_detail_killed').text(event.options.event_killed);
$('#event_detail_injured').text(event.options.event_injured);
$('#event_detail_detained').text(event.options.event_detained);
$('#event_detail_source').html(event.options.event_source);
$('#event_detail_notes').html(event.options.event_notes);
$('#event_detail_source').html(normalize_json_string(event.options.event_source));
$('#event_detail_notes').html(normalize_json_string(event.options.event_notes));
$('#event_detail_reported_by').text(event.options.event_reported_by);

}
Expand Down

0 comments on commit 621f19a

Please sign in to comment.