Commit a630c442 authored by drumm's avatar drumm
Browse files

Issue #3264662: Remove unnecessary code

parent edbc1cc4
......@@ -508,24 +508,4 @@
element.insertAdjacentHTML(position, content);
}
// See more (org pages for now)
const collapsibles = Array.from(document.querySelectorAll('.drupalorg-inline-collapsible'));
for (var i = 0; i < collapsibles.length; i++) {
const seeMore = document.createElement('button');
seeMore.classList.add('see-more');
collapsibles[i].insertAdjacentElement('beforeend', seeMore);
seeMore.addEventListener('click', function (e) {
const classes = e.target.previousSibling.classList;
if (classes.contains('collapsed')) {
this.innerHTML= Drupal.t(" - See less");
classes.remove('collapsed');
}
else {
this.innerHTML = Drupal.t(" + See more");
classes.add('collapsed');
}
});
seeMore.click();
}
})();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment