MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 19: Line 19:
     }
     }
   }
   }
}
function toggleListTable() {
  var x = document.getElementById("all-texts-table");
  if (x.style.display === "none") {
      x.style.display = "block";
    } else {
      x.style.display = "none";
    }
  var y = document.getElementById("all-texts-list");
  if (y.style.display === "none") {
      y.style.display = "block";
    } else {
      y.style.display = "none";
    }
  /*var i;
  for (i = 0; i < y.length; i++) {
    if (y[i].style.display === "none") {
      y[i].style.display = "inline";
    } else {
      y[i].style.display = "none";
    }
  }*/
}
}