Skip to content
Snippets Groups Projects
Commit b2bface6 authored by juanf's avatar juanf
Browse files

SSDM-3357 : Links on names and identifiers + use copy/paste in samples table.

SVN: 35939
parent 2e6e33db
No related branches found
No related tags found
No related merge requests found
......@@ -13,9 +13,7 @@ var SampleDataGridUtil = new function() {
isExportable: true,
sortable : true,
render : function(data) {
var href = Util.getURLFor(mainController.sideMenu.getCurrentNodeId(), "showViewSamplePageFromPermId", data.permId);
var link = $("<a>", { "href" : href, "class" : "browser-compatible-javascript-link" }).append(data.identifier);
return link;
return FormUtil.getFormLink(data.identifier, "Sample", data.permId);
},
filter : function(data, filter) {
return data.identifier.toLowerCase().indexOf(filter) !== -1;
......@@ -33,7 +31,10 @@ var SampleDataGridUtil = new function() {
label : 'Name',
property : 'NAME',
isExportable: true,
sortable : true
sortable : true,
render : function(data) {
return FormUtil.getFormLink(data.NAME, "Sample", data.permId);
}
});
}
......
......@@ -82,13 +82,8 @@ function SampleTableController(parentController, title, experimentIdentifier, pr
}
}
//Click event
var rowClick = function(e) {
mainController.changeView('showViewSamplePageFromPermId', e.data.permId);
}
//Create and display table
var dataGridController = SampleDataGridUtil.getSampleDataGrid(selectedSampleTypeCode, samples, rowClick);
var dataGridController = SampleDataGridUtil.getSampleDataGrid(selectedSampleTypeCode, samples, null);
dataGridController.init(this._sampleTableView.getTableContainer());
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment