Whitelist ins/del tags in activity popovers

This commit is contained in:
2020-03-17 18:40:52 +00:00
parent b8931a64c8
commit b9d318e675
3 changed files with 14 additions and 20 deletions

View File

@@ -9,14 +9,13 @@
})
</script>
<script>
$(function () {
$('[data-toggle="popover"]').popover().click(function(){
if($(this).attr('href')){
window.location.href = $(this).attr('href');
}
});
//moment().twitter();
})
$(function () {
$('[data-toggle="popover"]').popover().click(function(){
if($(this).attr('href')){
window.location.href = $(this).attr('href');
}
});
})
$(document).ready(function() {
$(function () {
$( "#activity" ).hide();
@@ -24,15 +23,10 @@
$('#activity_loading').slideUp('slow',function(){
$('#activity').slideDown('slow');
});
$('#activity [data-toggle="popover"]').popover();
/*$('.date').each(function (index, dateElem) {
var $dateElem = $(dateElem);
var formatted = moment($dateElem.attr('data-date')).twitterLong();
$dateElem.text(formatted);
});*/
var whiteList = $.fn.tooltip.Constructor.Default.whiteList
whiteList.ins = []
whiteList.del = []
$('#activity [data-toggle="popover"]').popover({whiteList: whiteList});
});
});
});