mirror of
https://github.com/friendica/friendica
synced 2025-04-26 17:10:10 +00:00
frio: first part for event template work
This commit is contained in:
parent
3264efb238
commit
0af572ffba
8 changed files with 537 additions and 3 deletions
|
@ -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> ';
|
||||
var eventsum = $("#modal-body .event-wrapper .event-summary").text();
|
||||
title = title + eventsum;
|
||||
}
|
||||
|
||||
// and append it to modal title
|
||||
if (title!=="") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue