Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

A couple of Fixes for PR #6107 #7085

Merged
merged 2 commits into from
Mar 5, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions src/extensions/default/RecentProjects/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ define(function (require, exports, module) {

/** @type {$.Element} jQuery elements used for the dropdown menu */
var $dropdownItem,
$dropdownToggle,
$dropdown,
$links;

Expand Down Expand Up @@ -385,9 +384,7 @@ define(function (require, exports, module) {

Menus.closeAll();

$dropdown = $(renderList());
var toggleOffset = $dropdownToggle.offset();
$dropdown
$dropdown = $(renderList())
.css({
left: position.pageX,
top: position.pageY
Expand Down Expand Up @@ -428,8 +425,9 @@ define(function (require, exports, module) {
if (!SidebarView.isVisible()) {
SidebarView.show();
}

showDropdown();

$("#project-dropdown-toggle").trigger("click");

$dropdown.focus();
$links = $dropdown.find("a");
// By default, select the most recent project (which is at the top of the list underneath Open Folder),
Expand Down