Skip to content

Commit

Permalink
fix: Cambiar los ids en disqus ya no aparecen
Browse files Browse the repository at this point in the history
  • Loading branch information
jesustorresdev committed Dec 10, 2021
1 parent b6fd44c commit ac7264c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/html5/docinfo.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
jQuery("img, p, .colist td, .stemblock").not('#toc p').inlineDisqussions();
query_params = (new URL(document.location)).searchParams;
if (query_params.has('disqussion')) {
let identifier = window.location.pathname + '.disqussion-' + query_params.get('disqussion');
let identifier = window.location.pathname + 'disqussion-' + query_params.get('disqussion');
let selection = jQuery('[data-disqus-identifier="' + identifier + '"]').not('.disqussion-link');
if (selection.length) {
selection[0].scrollIntoView(true);
Expand Down
4 changes: 2 additions & 2 deletions content/media/extras/inlineDisqussions.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ var disqus_url;
identifier = node.attr('data-disqus-identifier');
}
else {
while ($('[data-disqus-identifier="' + settings.path + '.' + settings.identifier + '-' + i + '"]').length > 0) {
while ($('[data-disqus-identifier="' + settings.path + settings.identifier + '-' + i + '"]').length > 0) {
i++;
}
identifier = settings.path + '.' + settings.identifier + '-' + i;
identifier = settings.path + settings.identifier + '-' + i;
}

// Create the discussion note.
Expand Down

0 comments on commit ac7264c

Please sign in to comment.