projects
/
koha.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Bug 10310: Prevent submitting form with enter does not work with IE
[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).attr('type') != "submit"
7
) {
8
return false;
9
}
10
});
11
});