Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Schatz <jacobschatz@Jacobs-MBP.fios-router.home>2016-01-28 07:47:37 +0300
committerJacob Schatz <jacobschatz@Jacobs-MBP.fios-router.home>2016-01-28 07:47:37 +0300
commitf64e35069eb26959a201c25d548c68d00987d30d (patch)
tree6f9c9da280e0af2f1f0832e61e3b7dd2126e0950 /app/helpers/application_helper.rb
parentee89e9c8d13c9fd58bb8e36c5ca2d6b35891a1f8 (diff)
Add js to expand and contract side menu
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r--app/helpers/application_helper.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 57a9ce8294a..b0cd984024f 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -303,7 +303,7 @@ module ApplicationHelper
end
end
- def next_issuable_for(project)
+ def next_issuable_for(project, id)
if project.nil?
nil
elsif current_controller?(:issues)
@@ -313,13 +313,13 @@ module ApplicationHelper
end
end
- def prev_issuable_for(project)
+ def prev_issuable_for(project, id)
if project.nil?
nil
elsif current_controller?(:issues)
project.issues.where("id < ?", id).last
elsif current_controller?(:merge_requests)
- project.merge_requests.where("id > ?", id).last
+ project.merge_requests.where("id < ?", id).last
end
end