Bug 14321: Integrate Upload.pm into Koha
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / js / prevent_submit.js
1 $(document).ready(function() {
2   // We don't want to apply this for the search form
3   $("#doc3 form").keypress(function (e) {
4     if( e.which == 13
5         && e.target.nodeName == "INPUT"
6         && e.target.type != "submit"
7     ) {
8         return false;
9     }
10   });
11 });