mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-06 15:40:31 +08:00
Update utils.js
Closes SCI-811.
This commit is contained in:
parent
e76ba4fbad
commit
5beaa26224
1 changed files with 1 additions and 1 deletions
|
@ -242,7 +242,7 @@ $.fn.makeDropdownOptionsLinks = function(selectedIdx, urlParam) {
|
||||||
});
|
});
|
||||||
var selectedOpt = $(this).find('option[value="' + selectedIdx + '"]');
|
var selectedOpt = $(this).find('option[value="' + selectedIdx + '"]');
|
||||||
if (!selectedOpt.length) {
|
if (!selectedOpt.length) {
|
||||||
selectedOpt = $(this).find('option').eq(1);
|
selectedOpt = $(this).find('option').eq(0);
|
||||||
}
|
}
|
||||||
selectedOpt.attr('selected', true);
|
selectedOpt.attr('selected', true);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue