MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 347: Line 347:
  if(!hide || !hide.classList.contains("altWords")) return;
  if(!hide || !hide.classList.contains("altWords")) return;
  var show = hide.nextElementSibling;
  var show = hide.nextElementSibling;
  if(!show || !show.classList.contains("altWords")) {
  if(!show || !show.classList.contains("altWords") || !show.innerHTML) {
   var find = hide;
   var find = hide;
   do { // seek back to the first of list
   do { // seek back to the first of list