Patch by Takenori TAKAKI (user:takenory).
git-svn-id: https://svn.redmine.org/redmine/trunk@23306
e93f8b46-1217-0410-a6f0-
8f06a7374b81
} else {
$(".drdn").removeClass("expanded");
drdn.addClass("expanded");
- selected = $('.drdn-items a.selected'); // Store selected project
- selected.focus(); // Calling focus to scroll to selected project
+ if ($(this).parent('#project-jump').length) {
+ selected = $('.drdn-items a.selected'); // Store selected project
+ selected.focus(); // Calling focus to scroll to selected project
+ }
if (!isMobile()) {
drdn.find(".autocomplete").focus();
}