Template:Lp-layout-default: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
No edit summary |
Disable submitting form with return key |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:KeepItFree}} |
{{DISPLAYTITLE:KeepItFree}} |
||
<html> |
<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> |
|||
<style type="text/css"> |
<style type="text/css"> |
||
#pitch { |
#pitch { |