MediaWiki:Resources/landingpage.js: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
creating page with JS from Template:Lp-layout-default |
blank - all moved to MediaWiki:Common.js (not deleting so history stays visible) Tag: Blanking |
||
(50 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<html> |
|||
<script type="text/javascript"> |
|||
$( document ).ready( function () { |
|||
// Disable submitting form with return key |
|||
$( 'form' ).bind( 'keypress', function(e) { |
|||
var code = ( e.keyCode ? e.keyCode : e.which ); |
|||
if ( code == 13 ) return false; |
|||
} ); |
|||
} ); |
|||
</script> |
|||
</html> |