MediaWiki:CharCount.js: Difference between revisions

Added identifier
Forgot the identifier
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
$( function ()  {
var myPlace = document.getElementById('CharCount');
function getID(id) {
function getID(id) {
return document.getElementById(tpl-CharCount);
return document.getElementById(id);
}
}


Line 11: 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 113: Line 114:
updateOutput();
updateOutput();
}
}
});