View | Details | Raw Unified | Return to bug 15911
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt (-2 / +1 lines)
Lines 71-77 Link Here
71
    </div>
71
    </div>
72
[% END %]
72
[% END %]
73
73
74
<form action="/cgi-bin/koha/acqui/addorder.pl" method="post" class="validated" id="Aform" onsubmit="return Check(this);" >
74
<form action="/cgi-bin/koha/acqui/addorder.pl" method="post" class="validated noEnterSubmit" id="Aform" onsubmit="return Check(this);" >
75
75
76
    <fieldset class="rows">
76
    <fieldset class="rows">
77
        <legend>Patrons</legend>
77
        <legend>Patrons</legend>
Lines 532-538 Link Here
532
    [% INCLUDE 'additem.js.inc' %]
532
    [% INCLUDE 'additem.js.inc' %]
533
    [% Asset.js("js/additem.js") | $raw %]
533
    [% Asset.js("js/additem.js") | $raw %]
534
    [% Asset.js("js/cataloging.js") | $raw %]
534
    [% Asset.js("js/cataloging.js") | $raw %]
535
    [% Asset.js("js/prevent_submit.js") | $raw %]
536
    <script>
535
    <script>
537
        actTotal = "";
536
        actTotal = "";
538
537
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt (-2 / +1 lines)
Lines 23-29 Link Here
23
<h1>Receive items from : [% name | html %] [% IF ( invoice ) %][[% invoice | html %]] [% END %] (order #[% ordernumber | html %])</h1>
23
<h1>Receive items from : [% name | html %] [% IF ( invoice ) %][[% invoice | html %]] [% END %] (order #[% ordernumber | html %])</h1>
24
24
25
[% IF ( count ) %]
25
[% IF ( count ) %]
26
    <form action="/cgi-bin/koha/acqui/finishreceive.pl" method="post" onsubmit="return Check(this);">
26
    <form action="/cgi-bin/koha/acqui/finishreceive.pl" class="noEnterSubmit" method="post" onsubmit="return Check(this);">
27
<div class="row">
27
<div class="row">
28
<div class="col-sm-6">
28
<div class="col-sm-6">
29
    <div class="dialog alert order_error" style="display:none"></div>
29
    <div class="dialog alert order_error" style="display:none"></div>
Lines 329-335 Link Here
329
    [% INCLUDE 'additem.js.inc' %]
329
    [% INCLUDE 'additem.js.inc' %]
330
    [% Asset.js("js/additem.js") | $raw %]
330
    [% Asset.js("js/additem.js") | $raw %]
331
    [% Asset.js("js/cataloging.js") | $raw %]
331
    [% Asset.js("js/cataloging.js") | $raw %]
332
    [% Asset.js("js/prevent_submit.js") | $raw %]
333
    <script>
332
    <script>
334
        function Check(form) {
333
        function Check(form) {
335
            [% IF (AcqCreateItemReceiving) %]
334
            [% IF (AcqCreateItemReceiving) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt (-2 / +1 lines)
Lines 5-11 Link Here
5
<title>Koha &rsaquo; Serials &rsaquo; Serial edition [% bibliotitle | html %]</title>
5
<title>Koha &rsaquo; Serials &rsaquo; Serial edition [% bibliotitle | html %]</title>
6
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% Asset.js("js/cataloging.js") | $raw %]
7
[% Asset.js("js/cataloging.js") | $raw %]
8
[% Asset.js("js/prevent_submit.js") | $raw %]
9
[% INCLUDE 'calendar.inc' %]
8
[% INCLUDE 'calendar.inc' %]
10
<script>
9
<script>
11
//<![CDATA[
10
//<![CDATA[
Lines 97-103 $(document).ready(function() { Link Here
97
    [% IF location %] ([% AuthorisedValues.GetByCode('LOC', location) | html %])[% END %]
96
    [% IF location %] ([% AuthorisedValues.GetByCode('LOC', location) | html %])[% END %]
98
    [% IF ( callnumber ) %] callnumber: [% callnumber | html %][% END %]</h1>
97
    [% IF ( callnumber ) %] callnumber: [% callnumber | html %][% END %]</h1>
99
[% IF internalnotes %]<p>Nonpublic note: [% internalnotes | html %]</p>[% END %]
98
[% IF internalnotes %]<p>Nonpublic note: [% internalnotes | html %]</p>[% END %]
100
<form method="post" name="f" action="serials-edit.pl" id="serials_edit">
99
<form method="post" name="f" class="noEnterSubmit" action="serials-edit.pl" id="serials_edit">
101
100
102
[% IF ( Errors ) %]
101
[% IF ( Errors ) %]
103
<div class="dialog alert">
102
<div class="dialog alert">
(-)a/koha-tmpl/intranet-tmpl/prog/js/prevent_submit.js (-12 lines)
Lines 1-11 Link Here
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
});
12
- 

Return to bug 15911