Commit 0d9f73fa1e3d9f0c97b20b4bc85cd71b3df95df7

Authored by AlexDenisov
Committed by Alex Denisov
1 parent f038057b

JavaScript removed from dashboard#index template.

app/assets/javascripts/dashboard.js
... ... @@ -2,6 +2,12 @@
2 2 * Init dashboard page
3 3 *
4 4 */
  5 +
  6 +$(function(){
  7 + Pager.init(20, true);
  8 + dashboardPage();
  9 +});
  10 +
5 11 function dashboardPage(){
6 12 $(".event_filter_link").bind('click',(function(){
7 13 enableFilter(this.id);
... ...
app/views/dashboard/index.html.haml
1   -= javascript_include_tag 'dashboard'
2 1 - if @has_authorized_projects
3 2 .projects
4 3 .activities.span8
... ... @@ -8,5 +7,3 @@
8 7  
9 8 - else
10 9 = render "zero_authorized_projects"
11   -:javascript
12   - $(function(){ Pager.init(20, true); });
... ...
features/dashboard/event_filters.feature
... ... @@ -7,6 +7,7 @@ Feature: Event filters
7 7 And this project has merge request event
8 8 And I visit dashboard page
9 9  
  10 + @javascript
10 11 Scenario: I should see all events
11 12 Then I should see push event
12 13 And I should see new member event
... ...