Skip to content
Browse files

Merge pull request #44 from hgq/07_04_pt15121665_head

[Fixes #15121665] prevent double-submit of checkin form when pressing Ent
  • Loading branch information...
2 parents ca388cd + 022ba88 commit 621c211a0ab3deccfa248c1913439dc9bbd56edd @ctfliblime ctfliblime committed Jun 30, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tmpl
View
3 koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tmpl
@@ -659,6 +659,8 @@ function ContinueReturns() {
// if the key pressed is the enter key
if (e.which == 13) {
setOverrideDate();
+ document.myf.submit();
+ return;
}
});
</script>
@@ -753,7 +755,6 @@ function ContinueReturns() {
if (odate != '') {
document.cookie = 'checkin_override_date='+odate+'; path=/';
}
- return document.myf.submit();
}
</script>
</div>

0 comments on commit 621c211

Please sign in to comment.
Something went wrong with that request. Please try again.