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

SSDM-621: tabular view Bugfix

SVN: 32169
parent f82f08f2
No related branches found
No related tags found
No related merge requests found
......@@ -201,9 +201,12 @@ function ExperimentFormView(experimentFormController, experimentFormModel) {
for(var i = 0; i < data.result.length; i++) {
var subExperiment = data.result[i];
var link = $("<a>", { "style" : "cursor:pointer;" }).append(subExperiment.code);
link.click(function() {
_this._experimentFormController._mainController.changeView("showViewSamplePageFromPermId", subExperiment.permId);
});
var clickFunction = function(permId) {
return function() {
_this._experimentFormController._mainController.changeView("showViewSamplePageFromPermId", permId);
}
}
link.click(clickFunction(subExperiment.permId));
$tbody.append($("<tr>").append($("<td>").append(link)).append("<td>" + subExperiment.sampleTypeCode + "</td>").append("<td>" + Util.getMapAsString(subExperiment.properties, 200) + "</td>"));
}
$subExperimentsList.append($table);
......
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