Lines 7-12
Link Here
|
7 |
[% INCLUDE 'additem.js.inc' %] |
7 |
[% INCLUDE 'additem.js.inc' %] |
8 |
<script type="text/javascript" src="[% themelang %]/js/additem.js"></script> |
8 |
<script type="text/javascript" src="[% themelang %]/js/additem.js"></script> |
9 |
<script type="text/javascript"> |
9 |
<script type="text/javascript"> |
|
|
10 |
var nav = window.Event ? true : false; |
11 |
if (nav) { |
12 |
window.captureEvents(Event.KEYDOWN); |
13 |
window.onkeydown = NetscapeEventHandler_KeyDown; |
14 |
} else { |
15 |
document.onkeydown = IEEventHandler_KeyDown; |
16 |
} |
17 |
|
18 |
function NetscapeEventHandler_KeyDown(e) { |
19 |
if (e.which == 13 && e.target.type != 'textarea' && e.target.type != 'submit') { return false; } |
20 |
return true; |
21 |
} |
22 |
|
23 |
function IEEventHandler_KeyDown() { |
24 |
if (event.keyCode == 13 && event.srcElement.type != 'textarea' && event.srcElement.type != 'submit') |
25 |
return false; |
26 |
return true; |
27 |
} |
10 |
//<![CDATA[ |
28 |
//<![CDATA[ |
11 |
actTotal = ""; |
29 |
actTotal = ""; |
12 |
|
30 |
|
13 |
- |
|
|