mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-17 08:36:06 +10:00
* Add search filtering for group projects * Show all user projects on dashboard * Refactor projects list into one view * Hide big list of projects with 'Show all' button
16 lines
386 B
CoffeeScript
16 lines
386 B
CoffeeScript
class @Dashboard
|
|
constructor: ->
|
|
@initSidebarTab()
|
|
new ProjectsList()
|
|
|
|
initSidebarTab: ->
|
|
key = "dashboard_sidebar_filter"
|
|
|
|
# store selection in cookie
|
|
$('.dash-sidebar-tabs a').on 'click', (e) ->
|
|
$.cookie(key, $(e.target).attr('id'))
|
|
|
|
# show tab from cookie
|
|
sidebar_filter = $.cookie(key)
|
|
$("#" + sidebar_filter).tab('show') if sidebar_filter
|