Skip to content
Snippets Groups Projects
Commit ac23e778 authored by Daniel Rodriguez's avatar Daniel Rodriguez
Browse files

Merge branch '3499509-taxonomy-terms-being' into '3.0.x'

Issue # 3499509: Ugly fix for the issue of the Taxonomy terms being rendered multiple times

See merge request !8
parents 525bbae6 c477f4e8
No related branches found
No related tags found
No related merge requests found
Pipeline #400142 passed with warnings
......@@ -14,11 +14,11 @@ default:
# Define third-party libraries.
jqcloud:
remote: https://github.com/mistic100/jQCloud
remote: https://github.com/danrod96-new/jQCloud
version: VERSION
license:
name: MIT
url: https://github.com/mistic100/jQCloud/blob/master/LICENSE.txt
url: https://github.com/danrod96-new/jQCloud/blob/master/LICENSE.txt
gpl-compatible: false
js:
/libraries/jqcloud/dist/jqcloud.js: {}
......@@ -28,7 +28,7 @@ jqcloud-styles:
version: VERSION
license:
name: MIT
url: https://github.com/mistic100/jQCloud/blob/master/LICENSE.txt
url: https://github.com/danrod96-new/jQCloud/blob/master/LICENSE.txt
gpl-compatible: false
css:
theme:
......
......@@ -12,6 +12,12 @@
*/
Drupal.behaviors.jQCloud = {
attach(context, settings) {
const termsRendered = document.querySelectorAll('.jqcloud-contents.jqcloud');
if (termsRendered.length > 0) {
return 0;
}
if (typeof settings.jQCloud !== 'undefined') {
Object.keys(settings.jQCloud).forEach(function (key) {
if ({}.hasOwnProperty.call(settings.jQCloud, key)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment