593002ac94a72b506e3c169b7f3d7a97410844e6
2 * 2009 Benoit Pin - MINES ParisTech
12 CartListing = function(table
) {
15 var form
= table
.parentNode
;
16 while(form
.tagName
!= 'FORM')
17 form
= form
.parentNode
;
19 this.fm
= new FormManager(form
);
22 addListener(table
, 'focusout', function(evt
){thisCL
.updateRow(evt
);});
24 addListener(table
, 'change', function(evt
){thisCL
.updateRow(evt
);});
26 addListener(table
, 'keypress', function(evt
){thisCL
.onKeypress(evt
);});
29 CartListing
.prototype.updateRow = function(evt
) {
30 var target
= getTargetedObject(evt
);
31 if (target
.tagName
!= 'INPUT')
35 var row
= target
.parentNode
.parentNode
;
36 var inputs
= row
.getElementsByTagName('input')
37 var refreshBtn
= inputs
[1];
38 this.fm
.submitButton
= refreshBtn
;
42 CartListing
.prototype.onKeypress = function(evt
){
43 if (evt
.keyCode
== ENTERKEY
)