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

SSDM-3357 : Select Experiment type dropdown should show a placeholder text “Select experiment type”

SVN: 35941
parent bd0b88c7
No related branches found
No related tags found
No related merge requests found
...@@ -27,11 +27,9 @@ function ExperimentTableView(experimentTableController, experimentTableModel) { ...@@ -27,11 +27,9 @@ function ExperimentTableView(experimentTableController, experimentTableModel) {
$container.append($title); $container.append($title);
} }
var $toolbox = $("<div>", { 'id' : 'toolBoxContainer', class : 'toolBox'}); var toolbarModel = [];
$toolbox.append("Experiment Type: "); toolbarModel.push({ component : this._getProjectExperimentTypesDropdown(), tooltip: "Select an experiment type to visualize on the table" });
$toolbox.append(this._getProjectExperimentTypesDropdown()).append(" ").append(); $container.append(FormUtil.getToolbar(toolbarModel));
$container.append($toolbox);
$container.append(this._tableContainer); $container.append(this._tableContainer);
} }
...@@ -49,7 +47,7 @@ function ExperimentTableView(experimentTableController, experimentTableModel) { ...@@ -49,7 +47,7 @@ function ExperimentTableView(experimentTableController, experimentTableModel) {
this._getProjectExperimentTypesDropdown = function() { this._getProjectExperimentTypesDropdown = function() {
var _this = this; var _this = this;
var $typesSelector = $('<select>', { class : 'form-control' }); var $typesSelector = $('<select>', { class : 'form-control' });
$typesSelector.append($('<option>', { 'value' : '' }).text('')); $typesSelector.append($("<option>").attr('value', '').attr('selected', '').attr('disabled', '').text("Select an experiment type"));
for(typeCode in this._experimentTableModel.types) { for(typeCode in this._experimentTableModel.types) {
$typesSelector.append($('<option>', { 'value' : typeCode }).text(typeCode)); $typesSelector.append($('<option>', { 'value' : typeCode }).text(typeCode));
} }
......
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