Welcome to IOPWiki, Commander.
With the release of the new game, we encourage contributions to topics related to Girls' Frontline 2. Learn how to contribute, read the maintenance guide, and join our Discord server to discuss major changes.
If you or someone you know can help deciphering the game files, contact our administrator.

MediaWiki:Common.js: Difference between revisions

Welcome to IOP Wiki. This website is maintained by the Girls' Frontline community and is free to edit by anyone.
Jump to navigation Jump to search
m fix code style
No edit summary
Line 1: Line 1:
if (cell.innerHTML.indexOf("sortheader") < 0) {
if (cell.innerHTML.indexOf("sortheader") < 0) {
console.log("first");
sortables_init();
sortables_init();
// sort the first sortable table; change [0] to sort other tables.
// sort the first sortable table; change [0] to sort other tables.
Line 7: Line 8:
// get the sort button link
// get the sort button link
lnk = hdr.getElementsByTagName("a")[0];
lnk = hdr.getElementsByTagName("a")[0];
console.log("second");
ts_resortTable(lnk);
ts_resortTable(lnk);
}
}

Revision as of 03:50, 27 October 2016

if (cell.innerHTML.indexOf("sortheader") < 0) {
	console.log("first");
	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];
	console.log("second");
	ts_resortTable(lnk);
}