MediaWiki:Common.js: Difference between revisions

Content deleted Content added
Undo revision 27764 by Pcoombe (talk)
block symbols in Other field
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 ("$£€¥".indexOf(chr) !== -1) {
return false;
}
};
 
// Disable submitting form with return key