MediaWiki:Common.js: Difference between revisions

Content deleted Content added
new 'low2016' hpcSet for testing
https://phabricator.wikimedia.org/T118741
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