frio: first part for event template work

This commit is contained in:
rabuzarus 2016-06-12 18:23:10 +02:00
parent 3264efb238
commit 0af572ffba
8 changed files with 537 additions and 3 deletions

View file

@ -158,8 +158,17 @@ function loadModalTitle() {
// hide the first element with the class "heading" of the modal body
$("#modal-body .heading").first().hide();
var title = "";
// get the text of the first element with "heading" class
var title = $("#modal-body .heading").first().text();
title = $("#modal-body .heading").first().text();
// for event modals we need some speacial handling
if($("#modal-body .event-wrapper .event-summary").length) {
title = '<i class="fa fa-calendar" aria-hidden="true"></i>&nbsp;';
var eventsum = $("#modal-body .event-wrapper .event-summary").text();
title = title + eventsum;
}
// and append it to modal title
if (title!=="") {