@@ -141,7 +141,10 @@ jQuery(function ($) { | |||
}); | |||
function downloadEvent(){ | |||
var subject = $('#subject').val(); | |||
var description = $('#description').html(); | |||
var description = $('#description').val(); | |||
//description = $('.post-single-content').html(); | |||
description = description.replace(/\r\n/g , '\\n'); | |||
description = description.replace(/<br>g , '\\n'); | |||
var location = $('#location').val(); | |||
var begin = $('#start-date').val(); | |||
var end = $('#end-date').val(); |
@@ -26,7 +26,7 @@ | |||
{{end}} | |||
</div> | |||
<div class="col-lg-8 offset-lg-2"> | |||
<div class="post-single-content" id="description"> | |||
<div class="post-single-content"> | |||
{{ .Content }} | |||
</div> | |||
{{ if site.Params.post_share }} | |||
@@ -40,6 +40,7 @@ | |||
{{if not .Params.disable_download}} | |||
<div class="col-lg-8 offset-lg-2"> | |||
<input type="hidden" id="subject" value="{{.Title }}"/> | |||
<input type="hidden" id="description" value="{{ .Content }}"/> | |||
<input type="hidden" id="location" value="{{.Params.location }}"/> | |||
<input type="hidden" id="start-date" value="{{.Params.event_start_date }}"/> | |||
<input type="hidden" id="end-date" value="{{.Params.event_end_date }}"/> |