Sort the items in the About MathJax dialog box

This commit is contained in:
Davide P. Cervone 2011-08-24 17:28:54 -04:00
parent 2baa587175
commit a7fd90af2f
2 changed files with 5 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -606,10 +606,13 @@
if (MENU.About.div) {document.body.removeChild(MENU.About.div); delete MENU.About.div}
};
MENU.About.GetJax = function (jax,JAX,type,noTypeCheck) {
var info = [];
for (var id in JAX) {if (JAX.hasOwnProperty(id) && JAX[id]) {
if ((noTypeCheck && JAX[id].version) || (JAX[id].isa && JAX[id].isa(JAX)))
{jax.push((JAX[id].id||id)+" "+type+" v"+JAX[id].version,["br"])}
{info.push((JAX[id].id||id)+" "+type+" v"+JAX[id].version)}
}}
info.sort();
for (var i = 0, m = info.length; i < m; i++) {jax.push(info[i],["br"])}
return jax;
};