Patch: Make submit buttons only trigger on mousedown if the left mouse button was used

develop
Sven Slootweg 12 years ago
parent a5c8d83179
commit 755ca63d62

@ -54,7 +54,10 @@ $(function(){
}
});
$('button[type=submit]').mousedown(function(){
$(this).closest('form').submit();
$('button[type=submit]').mousedown(function(event){
if(event.which == 1)
{
$(this).closest('form').submit();
}
});
});

Loading…
Cancel
Save