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

WIP commment

parent 048fd41b
No related branches found
No related tags found
1 merge request!5UI Upgrade and content
...@@ -8,13 +8,20 @@ $(document).ready(function() { ...@@ -8,13 +8,20 @@ $(document).ready(function() {
$('.book-header').show(); $('.book-header').show();
$('.commentaireInfo').hide(); $('.commentaireInfo').hide();
$('.commentaireInfo').prop('popover', 'auto'); // $('.commentaireInfo').prop('popover', 'auto');
$('.commentaireInfoGroup').show(); $('.commentaireInfoGroup').show();
// Comment popover // Comment popover
$('[spanid]').addClass('comment-trigger').on('click', function() { $('[spanid]').addClass('comment-trigger').popover({
let spanid = $(this).attr('spanid'); trigger: 'click',
$("[commentaireid=" + spanid + "]").toggle(); html: true,
content: function () {
return "tt" + $(this).attr('spanid');
}
});
$(document).on('click', function() {
$('[spanid]').popover('hide');
}); });
// Simplify th in td // Simplify th in td
......
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
{{- $quizjs := slice -}} {{- $quizjs := slice -}}
{{- $quizjs = $quizjs | append (resources.Get "quiz.js") -}} {{- $quizjs = $quizjs | append (resources.Get "quiz.js") -}}
{{- $quizjs = $quizjs | append (resources.Get "custom.js") -}}
{{- $quizjs = $quizjs | append (resources.Get "gapfill-select.js") -}} {{- $quizjs = $quizjs | append (resources.Get "gapfill-select.js") -}}
{{- $quizjs = $quizjs | append (resources.Get "gapfill-open.js") -}} {{- $quizjs = $quizjs | append (resources.Get "gapfill-open.js") -}}
{{- $quizjs = $quizjs | resources.Concat "quiz.bundle.js" -}} {{- $quizjs = $quizjs | resources.Concat "quiz.bundle.js" -}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment