From 5beaa2622419b775a2235be2fb6cdbd34416d7c8 Mon Sep 17 00:00:00 2001 From: Luka Murn Date: Thu, 22 Dec 2016 10:03:00 +0100 Subject: [PATCH] Update utils.js Closes SCI-811. --- app/assets/javascripts/sitewide/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/sitewide/utils.js b/app/assets/javascripts/sitewide/utils.js index 3c7a094cb..aed8f6623 100644 --- a/app/assets/javascripts/sitewide/utils.js +++ b/app/assets/javascripts/sitewide/utils.js @@ -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);