X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f77a3c75bee528caaa6fc8e237ee6eaef704efe0..6cb69b5e4be820b3f30d0f9eef9bbeb39fab5231:/app/controllers/map_bugs_controller.rb diff --git a/app/controllers/map_bugs_controller.rb b/app/controllers/map_bugs_controller.rb index a3984347b..bd91c1281 100644 --- a/app/controllers/map_bugs_controller.rb +++ b/app/controllers/map_bugs_controller.rb @@ -42,7 +42,7 @@ class MapBugsController < ApplicationController @bugs = MapBug.find_by_area(@min_lat, @min_lon, @max_lat, @max_lon, :include => :comments, :order => "updated_at DESC", :limit => limit, :conditions => conditions) respond_to do |format| - format.html {render :template => 'map_bugs/get_bugs.js', :content_type => "text/javascript"} + format.html {render :template => 'map_bugs/get_bugs.rjs', :content_type => "text/javascript"} format.rss {render :template => 'map_bugs/get_bugs.rss'} format.js format.xml {render :template => 'map_bugs/get_bugs.xml'} @@ -187,7 +187,7 @@ class MapBugsController < ApplicationController :conditions => conditions) @bugs = bugs2.uniq respond_to do |format| - format.html {render :template => 'map_bugs/get_bugs.js', :content_type => "text/javascript"} + format.html {render :template => 'map_bugs/get_bugs.rjs', :content_type => "text/javascript"} format.rss {render :template => 'map_bugs/get_bugs.rss'} format.js format.xml {render :template => 'map_bugs/get_bugs.xml'}