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