From: rabuzarus <> Date: Mon, 17 Oct 2016 20:58:30 +0000 (+0200) Subject: frio: better handling of event location in event hover cards X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b317f811e7f2208b470342cc99b88c9d33fa2f69;p=friendica.git frio: better handling of event location in event hover cards --- diff --git a/view/theme/frio/js/mod_events.js b/view/theme/frio/js/mod_events.js index 4e900d06ca..5bd7c94498 100644 --- a/view/theme/frio/js/mod_events.js +++ b/view/theme/frio/js/mod_events.js @@ -56,7 +56,7 @@ $(document).ready(function() { event.item['author-avatar'], event.item['author-name'], event.item.desc, - formatEventLocationText(event.item.location) + htmlToText(event.item.location) )); break; case "agendaDay": @@ -66,7 +66,7 @@ $(document).ready(function() { event.item['author-avatar'], event.item['author-name'], event.item.desc, - formatEventLocationText(event.item.location) + htmlToText(event.item.location) )); break; case "listMonth": @@ -203,7 +203,7 @@ function eventHoverHtmlContent(event) { // Get only template data if there exists location data if (event.item.location) { - var eventLocationText = formatEventLocationText(event.item.location); + var eventLocationText = htmlToText(event.item.location); // Get the the html template for formatting the location var eventLocationTemplate = eventHoverLocationTemplate(); // Format the event location data according to the the event location @@ -252,18 +252,3 @@ function formatListViewEvent(event) { return formatted; } - -// Format event location in pure text -function formatEventLocationText(location) { - // Friendica can store the event location as text or as html - // We need to check if the location is html. In this case we need - // to transform it into clean text - if (location.startsWith("