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

SP-909 / BIS-524 : ELN UI - Bug Fixes.

SVN: 29888
parent 0da846a0
No related branches found
No related tags found
No related merge requests found
......@@ -122,7 +122,7 @@ function MainController() {
this.showSamplesPage = function(sampleTypeCode) {
//Update menu
var sampleType = this.profile.getTypeForTypeCode(sampleTypeCode);
var breadCrumbPage = new BreadCrumbPage(sampleTypeCode, "showSamplesPage", sampleTypeCode, sampleType.description);
var breadCrumbPage = new BreadCrumbPage(sampleTypeCode+"-table", "showSamplesPage", sampleTypeCode, sampleType.description);
this.navigationBar.updateBreadCrumbPage(breadCrumbPage);
//Show Sample Table
......
......@@ -92,15 +92,15 @@ function SampleForm(mainController, containerId, profile, sampleTypeCode, isELNE
}
//Disable fields if needed
if (localReference.mode === SampleFormMode.VIEW) {
var sampleType = localReference.profile.getTypeForTypeCode(localReference.sampleTypeCode);
for(var i = 0; i < sampleType.propertyTypeGroups.length; i++) {
var propertyTypeGroup = sampleType.propertyTypeGroups[i];
for(var j = 0; j < propertyTypeGroup.propertyTypes.length; j++) {
var propertyType = propertyTypeGroup.propertyTypes[j];
var sampleType = localReference.profile.getTypeForTypeCode(localReference.sampleTypeCode);
for(var i = 0; i < sampleType.propertyTypeGroups.length; i++) {
var propertyTypeGroup = sampleType.propertyTypeGroups[i];
for(var j = 0; j < propertyTypeGroup.propertyTypes.length; j++) {
var propertyType = propertyTypeGroup.propertyTypes[j];
if (localReference.mode === SampleFormMode.VIEW || propertyType.managed || propertyType.dinamic) {
$("#"+propertyType.code).prop('disabled', true);
}
}
}
}
//Populate Links
......
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