mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-10 06:37:32 +08:00
Remove now obsolote controller actions
This commit is contained in:
parent
b0d7b9dc75
commit
8592c13ed4
2 changed files with 0 additions and 96 deletions
|
@ -33,77 +33,6 @@ class ProjectsController < ApplicationController
|
||||||
@project = Project.new
|
@project = Project.new
|
||||||
end
|
end
|
||||||
|
|
||||||
def update_comment_modules
|
|
||||||
id = request.request_parameters[:id]
|
|
||||||
msg = request.request_parameters[:msg]
|
|
||||||
|
|
||||||
Comment.where(id:id).update_all(message:msg)
|
|
||||||
|
|
||||||
rb_json = JSON.parse('{"json":['+id+']}')
|
|
||||||
respond_to do |format|
|
|
||||||
format.json {render json: rb_json["json"]}
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def delete_comment_modules
|
|
||||||
id = request.request_parameters[:id]
|
|
||||||
|
|
||||||
MyModuleComment.where(comment_id:id).destroy_all
|
|
||||||
Comment.find(id).destroy
|
|
||||||
|
|
||||||
rb_json = JSON.parse('{"json":['+id+']}')
|
|
||||||
respond_to do |format|
|
|
||||||
format.json {render json: rb_json["json"]}
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def update_comment_projects
|
|
||||||
id = request.request_parameters[:id]
|
|
||||||
msg = request.request_parameters[:msg]
|
|
||||||
|
|
||||||
Comment.where(id:id).update_all(message:msg)
|
|
||||||
|
|
||||||
rb_json = JSON.parse('{"json":['+id+']}')
|
|
||||||
respond_to do |format|
|
|
||||||
format.json {render json: rb_json["json"]}
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def delete_comment_projects
|
|
||||||
id = request.request_parameters[:id]
|
|
||||||
|
|
||||||
ProjectComment.where(comment_id:id).destroy_all
|
|
||||||
Comment.find(id).destroy
|
|
||||||
|
|
||||||
rb_json = JSON.parse('{"json":['+id+']}')
|
|
||||||
respond_to do |format|
|
|
||||||
format.json {render json: rb_json["json"]}
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def update_comment_results
|
|
||||||
id = request.request_parameters[:id]
|
|
||||||
msg = request.request_parameters[:msg]
|
|
||||||
|
|
||||||
Comment.where(id:id).update_all(message:msg)
|
|
||||||
|
|
||||||
rb_json = JSON.parse('{"json":['+id+']}')
|
|
||||||
respond_to do |format|
|
|
||||||
format.json {render json: rb_json["json"]}
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def delete_comment_results
|
|
||||||
id = request.request_parameters[:id]
|
|
||||||
|
|
||||||
ResultComment.where(comment_id:id).destroy_all
|
|
||||||
|
|
||||||
rb_json = JSON.parse('{"json":['+id+']}')
|
|
||||||
respond_to do |format|
|
|
||||||
format.json {render json: rb_json["json"]}
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def archive
|
def archive
|
||||||
@filter_by_archived = true
|
@filter_by_archived = true
|
||||||
index
|
index
|
||||||
|
|
|
@ -67,31 +67,6 @@ class ProtocolsController < ApplicationController
|
||||||
def index
|
def index
|
||||||
end
|
end
|
||||||
|
|
||||||
def update_comment
|
|
||||||
id = request.request_parameters[:id]
|
|
||||||
msg = request.request_parameters[:msg]
|
|
||||||
|
|
||||||
Comment.where(id:id).update_all(message:msg)
|
|
||||||
|
|
||||||
rb_json = JSON.parse('{"json":['+id+']}')
|
|
||||||
respond_to do |format|
|
|
||||||
format.json {render json: rb_json["json"]}
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def delete_comment
|
|
||||||
id = request.request_parameters[:id]
|
|
||||||
|
|
||||||
|
|
||||||
StepComment.where(comment_id:id).destroy_all
|
|
||||||
Comment.find(id).destroy
|
|
||||||
|
|
||||||
rb_json = JSON.parse('{"json":['+id+']}')
|
|
||||||
respond_to do |format|
|
|
||||||
format.json {render json: rb_json["json"]}
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def datatable
|
def datatable
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.json {
|
format.json {
|
||||||
|
|
Loading…
Reference in a new issue