Fixed bug caused by removal of the ID column from the grid.

git-svn-id: file:///svn-source/pmgr/branches/pre_0.1_work_20090819@766 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-08-24 20:12:20 +00:00
parent c261735197
commit 94188e3f92

View File

@@ -121,10 +121,8 @@ function onRowSelect(grid_id, customer_id) {
$("#receipt-customer-id").html('<A HREF="' +
"<?php echo $html->url(array('controller' => 'customers',
'action' => 'view')); ?>"
+ "/" +
$(grid_id).getCell(customer_id, 'Customer-id').replace(/^#/,'') +
'">' +
$(grid_id).getCell(customer_id, 'Customer-id') +
+ "/" + customer_id + '">' +
'#' + customer_id +
'</A>');
$("#receipt-customer-name").html($(grid_id).getCell(customer_id, 'Customer-name'));