Open main menu

MediaWiki:Common.js

Revision as of 03:49, 27 October 2016 by ReverseIdeology (talk | contribs) (fix code style)

Note: After saving, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
if (cell.innerHTML.indexOf("sortheader") < 0) {
	sortables_init();
	// sort the first sortable table; change [0] to sort other tables.
	tab = document.getElementsByTagName("table")[0];
	// sort by the first column; change [0] to sort by other columns.
	hdr = tab.getElementsByTagName("th")[0];
	// get the sort button link
	lnk = hdr.getElementsByTagName("a")[0];
	ts_resortTable(lnk);
}