Update utils.js

Closes SCI-811.
This commit is contained in:
Luka Murn 2016-12-22 10:03:00 +01:00 committed by GitHub
parent e76ba4fbad
commit 5beaa26224

View file

@ -242,7 +242,7 @@ $.fn.makeDropdownOptionsLinks = function(selectedIdx, urlParam) {
});
var selectedOpt = $(this).find('option[value="' + selectedIdx + '"]');
if (!selectedOpt.length) {
selectedOpt = $(this).find('option').eq(1);
selectedOpt = $(this).find('option').eq(0);
}
selectedOpt.attr('selected', true);