MediaWiki:Common.js: Difference between revisions
Content deleted Content added
use jquery for other amount symbol blocking |
|||
Line 297:
// Block typing symbols in input field, otherwise Safari allows them and then chokes
// https://phabricator.wikimedia.org/T118741
var chr = String.fromCharCode(e.which);
if ("0123456789., ".indexOf(chr) === -1) {
return false;
}
}
// Disable submitting form with Enter key
|