Skip to content
Snippets Groups Projects
Commit 27775e22 authored by Anthony's avatar Anthony
Browse files

Fix error when commentInfoGroup dont contains id

parent fc1a2944
No related branches found
No related tags found
1 merge request!5UI Upgrade and content
Pipeline #2046 canceled
...@@ -14,7 +14,8 @@ $(document).ready(function() { ...@@ -14,7 +14,8 @@ $(document).ready(function() {
// Comment popover // Comment popover
$('[spanid]').addClass('comment-trigger').each(function (){ $('[spanid]').addClass('comment-trigger').each(function (){
const spanid = $(this).attr('spanid'); const spanid = $(this).attr('spanid');
console.log(spanid);
if($("[commentaireid=" + spanid + "]").length !== 0) {
$(this).popover({ $(this).popover({
trigger: 'click', trigger: 'click',
html: true, html: true,
...@@ -23,6 +24,7 @@ $(document).ready(function() { ...@@ -23,6 +24,7 @@ $(document).ready(function() {
return $("[commentaireid=" + spanid + "]").html(); return $("[commentaireid=" + spanid + "]").html();
} }
}); });
}
}); });
$(document).on('click', function() { $(document).on('click', function() {
......
Subproject commit a6970e449194b8568d9303f099ef591025180f58 Subproject commit b5ca12c7a576389bc20ad0d90bc4c106a4a1cbb6
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment