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

Commit

Permalink
Merge pull request #7085 from adobe/tom/fix-after-pr6107
Browse files Browse the repository at this point in the history
A couple of Fixes for PR #6107
  • Loading branch information
ingorichter committed Mar 5, 2014
2 parents d8f8177 + da3d4d1 commit bbd5a2a
Showing 1 changed file with 4 additions and 6 deletions.
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

0 comments on commit bbd5a2a

Please # to comment.