Patch: Make submit buttons only trigger on mousedown if the left mouse button was used
This commit is contained in:
parent
a5c8d83179
commit
755ca63d62
|
@ -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();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue