This is the first time i have this issue and i don't understand why. I have a trigger click() with Jquery like this :
$('.history-element').click(function () {
console.log("Trigger");
detailHistory($(this).attr('historyNumber'));
});
This is the element i'm triggering :
<span style="cursor: pointer" class="history-element" historynumber="1">14/09/18 15:19</span>
<i style=" float: right" class="ms-Icon ms-Icon--Accept" aria-hidden="true"></i>
When i try to run a minimal code on JSFiddle that's work, so the issue is about something else but i don't find what ! Do you know what could create a conflict whith onclick ?
Thank's !
EDIT
This is the detailHistory function :
function detailHistory(index){
var history = Office.context.roamingSettings.get('history');
$('#historyRecapArea').hide();
$('#historyExpeditor').html(history[index]['expeditor']);
$('#historyMessage').html(history[index]['content']);
$('#recapType').html(history[index]['type']);
if(history[index]['type'] === "Confirmation"){
$('#recapConfLabel').html("Message envoyé le :");
$('#recapDate').html(history[index]['date']);
}
else if(history[index]['type'] === "Rappel"){
$('#recapConfLabel').html("Message configuré le :");
$('#recapDate').html(history[index]['date']);
}
else{
$('#historyRecapArea').show();
return;
}
$('#historyDetails').show();
}