diff --git a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/DataSetForm.js b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/DataSetForm.js index 29fb07ce432a3ec3d19c20d3174ea124edcc4a1c..81d9d427fe8a4ef00cded1c6f1bb5f4a44e866bb 100644 --- a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/DataSetForm.js +++ b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/DataSetForm.js @@ -54,8 +54,18 @@ function DataSetForm(serverFacade, containerId, profile, sample, mode) { $component.attr('required', ''); $component.append($("<option>").attr('value', '').attr('selected', '').text('')); + for(var i = 0; i < dataSetTypes.length; i++) { - $component.append($("<option>").attr('value',dataSetTypes[i].code).text(dataSetTypes[i].code)); + var displayName = dataSetTypes[i].code; + if(dataSetTypes[i].description) { + var length = dataSetTypes[i].description.length > 40; + if(dataSetTypes[i].description.length > 40) { + displayName = dataSetTypes[i].description.substring(1,36) + " ..."; + } else { + displayName = dataSetTypes[i].description; + } + } + $component.append($("<option>").attr('value',dataSetTypes[i].code).text(displayName)); } return $component;