MediaWiki:CharCount.js: Difference between revisions

m
typo
(Final version, just .js embedding the html into this didn't work)
m (typo)
Line 5: Line 5:
}
}


$(function addNumericOptions(id, min, max, defIndex) {
function addNumericOptions(id, min, max, defIndex) {
var s = getID(id);
var s = getID(id);
for (ii=min; ii<=max; ii++) {
for (ii=min; ii<=max; ii++) {
Line 13: Line 13:
s.add(option);
s.add(option);
}
}
}
s.value = defIndex;
s.value = defIndex;
});
 
function getMaxChars() {
function getMaxChars() {
var maxChar = getID('chars');
var maxChar = getID('chars');
Line 114: Line 115:
updateOutput();
updateOutput();
}
}
} );
 
});