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

ELN Refactoring - New spaces dropdown

SVN: 32155
parent 60abf224
No related branches found
No related tags found
No related merge requests found
......@@ -109,6 +109,22 @@ var FormUtil = new function() {
return $component;
}
this.getSpaceDropdown = function(id, isRequired) {
var spaces = this.profile.allSpaces;
var $component = $("<select>", {"id" : id, class : 'form-control'});
if (isRequired) {
$component.attr('required', '');
}
$component.append($("<option>").attr('value', '').attr('selected', '').text(''));
for(var i = 0; i < spaces.length; i++) {
$component.append($("<option>").attr('value', spaces[i]).text(spaces[i]));
}
return $component;
}
//
// Get Field with container to obtain a correct layout
//
......
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