MediaWiki:Common.js: Difference between revisions

Content deleted Content added
https://phabricator.wikimedia.org/T118741
Undo revision 27764 by Pcoombe (talk)
Line 288:
 
$(document).ready(function() {
// Block typing symbols in input field, otherwise Safari allows them and then chokes
// https://phabricator.wikimedia.org/T118741
document.getElementById('input_amount_other_box').onkeypress = function(e) {
var chr = String.fromCharCode(e.which);
if ("1234567890,.".indexOf(chr) < 0) {
return false;
}
};
 
// Disable submitting form with return key