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 #5435 from SAPlayer/recent-projects-toggle
Browse files Browse the repository at this point in the history
Clicking project-dropdown-toggle again closes the dropdown
  • Loading branch information
JeffryBooher committed Oct 21, 2013
2 parents ce74cb5 + 440c7fb commit 535646b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/extensions/default/RecentProjects/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,11 @@ define(function (require, exports, module) {
// Have to do this stopProp to avoid the html click handler from firing when this returns.
e.stopPropagation();

showDropdown();
if ($dropdown) {
closeDropdown(); //close if it's already visible
} else {
showDropdown();
}
}

/**
Expand Down

0 comments on commit 535646b

Please sign in to comment.