c6363b0bdbc188b220bb7b5c541325c9ebb20af8
2 * © 2009 Luxia SAS. All rights reserved.
4 * — Benoît Pin <pinbe@luxia.fr>
15 CartListing = function(table
) {
18 var form
= table
.parentNode
;
19 while(form
.tagName
!= 'FORM')
20 form
= form
.parentNode
;
22 this.fm
= new FormManager(form
);
25 addListener(table
, 'focusout', function(evt
){thisCL
.updateRow(evt
);});
27 addListener(table
, 'change', function(evt
){thisCL
.updateRow(evt
);});
29 addListener(table
, 'keypress', function(evt
){thisCL
.onKeypress(evt
);});
32 CartListing
.prototype.updateRow = function(evt
) {
33 var target
= getTargetedObject(evt
);
34 if (target
.tagName
!= 'INPUT')
38 var row
= target
.parentNode
.parentNode
;
39 var inputs
= row
.getElementsByTagName('input')
40 var refreshBtn
= inputs
[1];
41 this.fm
.submitButton
= refreshBtn
;
45 CartListing
.prototype.onKeypress = function(evt
){
46 if (evt
.keyCode
== ENTERKEY
)