Commit abf22778 authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

1175: Fix minor issues of current 3.5 release

Task-Url: https://pm.winseda.de/issues/1175
parent e0f17d97
......@@ -294,6 +294,20 @@ table.state-table tbody tr.state-row-ok td {
padding: 5px
}
.state-table a {
display: block;
width: 100%;
height: 100%;
color: inherit;
}
.state-table a:hover,
.state-table a:focus {
text-decoration: none;
}
.center {
text-align: center;
}
......
......@@ -27,13 +27,13 @@ CollectionsEditor.prototype.createTable = function() {
"columnDefs": [
{
"targets": [0], "class": "center", "cellType": "th",
"data": function (row, type, val, meta) { return editor.renderStateColumn(row, type, val, meta); }
"data": function (row, type, val, meta) { return editor.renderStateColumn(row, type, val, meta); },
}, {
"targets": [1], "class": "center",
"data": function (row, type, val, meta) { return row.entity.dataset.docs.toLocaleString(lang); }
"data": function (row, type, val, meta) { return row.entity.dataset.docs.toLocaleString(lang); },
}, {
"targets": [2],
"data": function (row, type, val, meta) { return editor.renderUrlColumn(row, type, val, meta); }
"data": function (row, type, val, meta) { return editor.renderUrlColumn(row, type, val, meta); },
}, {
"targets": [3],
"data": "entity.endpoint.method"
......@@ -43,6 +43,11 @@ CollectionsEditor.prototype.createTable = function() {
}, {
"targets": [5], "visible": false,
"data": "entity.collection.name"
}, {
"targets": [0,1,2,3,4],
"render": function ( data, type, row, meta ) {
return '<a href="' + __util.composeRelativeUrl(row.entity.id) + '">' + data + '</a>';
}
}
],
"rowCallback": this.setRowState,
......@@ -51,15 +56,6 @@ CollectionsEditor.prototype.createTable = function() {
"startRender": _this.setGroupRow
}
}, this.baseSettings));
$('#collections-table tbody').on('click', 'tr', function () {
var data = _this._base.table.row(this).data()
if (data===undefined) {
window.location = __util.composeRelativeUrl($(this).prop("id") + "/");
} else {
window.location = __util.composeRelativeUrl(data.entity.id);
}
});
};
CollectionsEditor.prototype.setGroupRow = function(rows, group) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment