Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

How to get rid of location in brackets displayed in Calendar WP with multiplellines in SharePoint 2013

$
0
0

I used following script to properly display the Calendar event with multiple lines. But one thing is remaining - when the event is All Day Event (see screenshot) the location in brackets (repeat of Location) is shown, while the events with times do not show location in brackets (only see it when mouse over).  Anyone has an idea to not display the location in brackets?

<scriptsrc="http://code.jquery.com/jquery-1.11.3.min.js"type="text/javascript"></script>
<scripttype="text/javascript">
$
(function(){
setInterval
(updateCalendarWeekday,1000);
})
function updateCalendarWeekday(){
   $
('#WebPartWPQ2 .ms-acal-item a').each(function(){
 
var str = $(this).html();
  str
= str.replace(/&lt;/g,"<");
  str
= str.replace(/&gt;/g,">");
  $
(this).html(str);
  
});
}
</script>


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>