X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/9fb8f5a84bfa96a299dfd1457c185181f15835d8..51c5be98f7c10e077d22488434365a626da5a893:/app/controllers/notes_controller.rb diff --git a/app/controllers/notes_controller.rb b/app/controllers/notes_controller.rb index f1ac6baa8..ea32441f2 100644 --- a/app/controllers/notes_controller.rb +++ b/app/controllers/notes_controller.rb @@ -299,17 +299,6 @@ class NotesController < ApplicationController # utility functions below. #------------------------------------------------------------ - ## - # Render an OK response - def render_ok - if params[:format] == "js" - render :text => "osbResponse();", :content_type => "text/javascript" - else - render :text => "ok " + @note.id.to_s + "\n", :content_type => "text/plain" if @note - render :text => "ok\n", :content_type => "text/plain" unless @note - end - end - ## # Get the maximum number of results to return def result_limit