|
|
@@ -981,18 +981,21 @@ class TableAjax extends ViewAjax {
|
|
|
}
|
|
|
|
|
|
//create cells
|
|
|
+ var primaryKeyField = '';
|
|
|
for (var i = 0; i < colsSorted.length; i++) {
|
|
|
var key = colsSorted[i];
|
|
|
var val = props[key];
|
|
|
if (!_data.cols[key]) return;
|
|
|
if (_data.cols[key].unique) row.data('unique', val);
|
|
|
|
|
|
- var cellID = _uniqueCol || 'ID';
|
|
|
- cellID = (cellID in props)? props[cellID] : null;
|
|
|
+ primaryKeyField = _uniqueCol || 'ID';
|
|
|
+ cellID = (primaryKeyField in props)? props[primaryKeyField] : null;
|
|
|
|
|
|
if (!_data.cols[key].hidden) {
|
|
|
var cell = $('<td></td>').appendTo(row);
|
|
|
- cell.on('dblclick', {id:cellID, col:key}, priv.rowDblClicked);
|
|
|
+ if (key !== primaryKeyField) {
|
|
|
+ cell.on('dblclick', {id:cellID, col:key}, priv.rowDblClicked);
|
|
|
+ }
|
|
|
var cellCnt = $('<span></span>').appendTo(cell);
|
|
|
if (i == 1) cell.addClass('stickyCol2');
|
|
|
cell.data('column', key);
|
|
|
@@ -5004,8 +5007,6 @@ jQuery(document).ready(function(){
|
|
|
$ind++;
|
|
|
$columnConfig = (object)array('index'=>$ind);
|
|
|
if ($col == 'ID') {
|
|
|
- // /SE/se-dev/index.php?MENU_INIT=USERS2_MARKETING_EDIT&ARG1=EDIT&ARG1_VAL=31105
|
|
|
- $columnConfig->format = '<a href="#EDIT/{0}">{0}</a>';
|
|
|
$columnConfig->unique = true;
|
|
|
}
|
|
|
else if (in_array($col, array('A_STATUS','A_STATUS_CURRENT','A_SERVICES_STATUS_CURRENT'))) {
|