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

SSDM-3044 : Barcodes on parents/children links

SVN: 35740
parent 478f8b46
No related branches found
No related tags found
No related merge requests found
...@@ -439,7 +439,12 @@ function SampleLinksWidget(containerId, profile, serverFacade, title, sampleType ...@@ -439,7 +439,12 @@ function SampleLinksWidget(containerId, profile, serverFacade, title, sampleType
var info = $("<span>"); var info = $("<span>");
var codeLink = sampleToAdd.code; var displayNameAsCode = sampleToAdd.code;
if(sampleToAdd.properties) {
displayNameAsCode = sampleToAdd.properties[profile.propertyReplacingCode];
}
var codeLink = displayNameAsCode;
if(this.isDisabled) { if(this.isDisabled) {
var style = ""; var style = "";
var notFound = ""; var notFound = "";
...@@ -449,7 +454,7 @@ function SampleLinksWidget(containerId, profile, serverFacade, title, sampleType ...@@ -449,7 +454,7 @@ function SampleLinksWidget(containerId, profile, serverFacade, title, sampleType
} }
var href = Util.getURLFor(mainController.sideMenu.getCurrentNodeId(), "showViewSamplePageFromPermId", sampleToAdd.permId); var href = Util.getURLFor(mainController.sideMenu.getCurrentNodeId(), "showViewSamplePageFromPermId", sampleToAdd.permId);
codeLink = $("<a>", { "style" : style, "href" : href, "class" : "browser-compatible-javascript-link" }).append(sampleToAdd.code + notFound); codeLink = $("<a>", { "style" : style, "href" : href, "class" : "browser-compatible-javascript-link" }).append(displayNameAsCode + notFound);
codeLink.click(function() { codeLink.click(function() {
mainController.changeView("showViewSamplePageFromPermId", sampleToAdd.permId); mainController.changeView("showViewSamplePageFromPermId", sampleToAdd.permId);
......
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