Commit d3a02cf0 authored by Randall Leeds's avatar Randall Leeds

Revert "When hiding the view/sort controls, collapse the dropdown menu, too. Fixes #1215."

This reverts commit 20dca37ee333684eb8f86bee722e4d308acea424.
parent c35208ab
...@@ -157,11 +157,6 @@ class App ...@@ -157,11 +157,6 @@ class App
sort: '' sort: ''
view: 'Screen' view: 'Screen'
$rootScope.collapseViewSortMenus = () ->
$(".viewsort .dropdown-toggle").toArray().forEach (toggle) ->
if $(toggle).parent().hasClass "open"
$(toggle).click()
# Show the sort/view control for a while. # Show the sort/view control for a while.
# #
# hide: should we hide it after a second? # hide: should we hide it after a second?
...@@ -169,12 +164,8 @@ class App ...@@ -169,12 +164,8 @@ class App
$rootScope.showViewSort = (show = true, hide = false) -> $rootScope.showViewSort = (show = true, hide = false) ->
if _vstp then $timeout.cancel _vstp if _vstp then $timeout.cancel _vstp
$rootScope.viewState.showControls = show $rootScope.viewState.showControls = show
$rootScope.collapseViewSortMenus() unless show
if $rootScope.viewState.showControls and hide if $rootScope.viewState.showControls and hide
_vstp = $timeout (-> _vstp = $timeout (-> $rootScope.viewState.showControls = false), 1000
$rootScope.viewState.showControls = false
$rootScope.collapseViewSortMenus()
), 1000
# "View" -- which annotations are shown # "View" -- which annotations are shown
$rootScope.applyView = (view) -> $rootScope.applyView = (view) ->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment