Browse Source

minor update

pull/141/head
abhidj0090 4 years ago
parent
commit
7b11738abf
2 changed files with 6 additions and 2 deletions
  1. 4
    1
      assets/js/script.js
  2. 2
    1
      layouts/events/single.html

+ 4
- 1
assets/js/script.js View File

@@ -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();

+ 2
- 1
layouts/events/single.html View File

@@ -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 }}"/>

Loading…
Cancel
Save