Fix sample types & groups when editing sample in samples table

Closes SCI-811.
This commit is contained in:
Luka Murn 2016-12-21 13:15:55 +01:00
parent d565cb4eef
commit e52277bdad

View file

@ -239,8 +239,10 @@ $.fn.makeDropdownOptionsLinks = function(selectedIdx, urlParam) {
} else { } else {
$(this).attr('href', '#'); $(this).attr('href', '#');
} }
}) });
.eq(selectedIdx).attr('selected', true); $(this)
.find('option[value=' + selectedIdx + ']')
.attr('selected', true);
return this; return this;
}; };