Commit 0d9f73fa authored by AlexDenisov's avatar AlexDenisov Committed by Alex Denisov

JavaScript removed from dashboard#index template.

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