|
|
@@ -2040,36 +2040,6 @@ var TableAjax = function() {
|
|
|
headCell.get(0)
|
|
|
);
|
|
|
|
|
|
- // if (i == 1) headCell.addClass('stickyCol stickyCol3')
|
|
|
-
|
|
|
- // DBG && console.log('DBG: render header cell action order by', { column, props }); // TODO: DBG isSrotable
|
|
|
- // if (props.type != 'special' && props.type != 'geom' && props.type != "simpleLink" && props.type != "ref") { // TODO: props.isSortable
|
|
|
- // headCell.on('click', {column: column}, priv.columnClicked) // priv.options.filterStore.dispatch( priv.options.filterActions.toggleSort(e.data.column) )
|
|
|
- // }
|
|
|
- //
|
|
|
- // var nodeLabel = (props.friendly) ? props.friendly : column
|
|
|
- // var nodeTitle = column
|
|
|
- // if (props.description && props.description.length > 0) {
|
|
|
- // nodeTitle = p5Utils__format("{0} ({1})", [props.description, column])
|
|
|
- // }
|
|
|
- // else if (props._tsRetId > 0) {
|
|
|
- // nodeTitle = p5Utils__format("Kliknij na pole i przejdź do powiązanych rekordów ({0})", [nodeTitle])
|
|
|
- // }
|
|
|
- // if ('ref' === props.type && props.xsdRefType) {
|
|
|
- // nodeLabel = '<i class="glyphicon glyphicon-export"></i> ' + props.xsdRefType
|
|
|
- // if (props.description && props.description.length > 0 && props.description !== column) {
|
|
|
- // nodeTitle = p5Utils__format("{0} (ref {1})", [props.description, column])
|
|
|
- // } else {
|
|
|
- // nodeTitle = p5Utils__format("(ref {0})", [column])
|
|
|
- // }
|
|
|
- // }
|
|
|
- // var headCnt = $(p5Utils__format('<span class="pull-left" title="{1}">{0}</span>', [nodeLabel, nodeTitle]))
|
|
|
- // headCnt.appendTo(headCell)
|
|
|
- //
|
|
|
- // if (column == _state._currSortCol) {
|
|
|
- // // headCell.addClass((_state._currSortFlip) ? 'ta-ordering-down' : 'ta-ordering-up')
|
|
|
- // }
|
|
|
- //
|
|
|
if (column !== _state.primaryKey) {
|
|
|
var hideColBtn = $('<i class="glyphicon glyphicon-remove remove-cell"></i>')
|
|
|
hideColBtn.on('click', {column: column}, priv.columnHideClicked)
|