MediaWiki:Common.js: Difference between revisions
Content deleted Content added
use preventDefault() for return key |
No edit summary |
||
Line 304:
};
// Disable submitting form with
$(
var code = ( e.keyCode ? e.keyCode : e.which );
if ( code == 13 ) {
e.preventDefault();
};
});
// But allow Enter on buttons
$('.payment-method-button').keyup(function(e) {
if (event.keyCode === 13) {
e.target.click();
}
});
|