diff options
| author | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2011-11-05 13:59:43 +0200 |
|---|---|---|
| committer | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2011-11-05 13:59:43 +0200 |
| commit | 586c53ea0594a327b346c6fed38528a1f508c9e1 (patch) | |
| tree | e93ba2fe6395ab656d318fbb3ff52317dfb792f7 /app/controllers/issues_controller.rb | |
| parent | 0b0e0225adfc83ed951118b3c3e82167add9fd03 (diff) | |
| download | gitlab-ce-586c53ea0594a327b346c6fed38528a1f508c9e1.tar.gz | |
fixed notes loading/paging
Diffstat (limited to 'app/controllers/issues_controller.rb')
| -rw-r--r-- | app/controllers/issues_controller.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index b6fd85b848f..7ff1ccb3a66 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -40,10 +40,7 @@ class IssuesController < ApplicationController respond_to do |format| format.html - format.js do - @notes = @notes.where("id > ?", params[:last_id]) if params[:last_id] - @notes = @notes.where("id < ?", params[:first_id]) if params[:first_id] - end + format.js { respond_with_notes } end end |
