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

This commit is contained in:
Sven Slootweg 2013-06-12 22:04:41 +02:00
parent a5c8d83179
commit 755ca63d62

View file

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