From 7149982578010b91fba27712b83d1f096b51b27c Mon Sep 17 00:00:00 2001 From: Jennifer Vendetti Date: Mon, 23 Jan 2023 17:22:10 -0800 Subject: [PATCH] Remove defunct marginal notes code --- app/assets/javascripts/bioportal.js.erb | 75 ------------- app/helpers/application_helper.rb | 76 ------------- app/views/margin_notes/_proposal.html.erb | 94 ---------------- app/views/margin_notes/_show.html.erb | 127 ---------------------- app/views/margin_notes/_update.html.erb | 2 - config/routes.rb | 2 - 6 files changed, 376 deletions(-) delete mode 100644 app/views/margin_notes/_proposal.html.erb delete mode 100644 app/views/margin_notes/_show.html.erb delete mode 100644 app/views/margin_notes/_update.html.erb diff --git a/app/assets/javascripts/bioportal.js.erb b/app/assets/javascripts/bioportal.js.erb index 39b68a27e..64ff865e2 100644 --- a/app/assets/javascripts/bioportal.js.erb +++ b/app/assets/javascripts/bioportal.js.erb @@ -143,40 +143,6 @@ function toggleHide(id,name_to_hide){ } - -//helper function for demo only -function newProposal(string){ - document.getElementById('subject').value="Proposal For Change"; - document.getElementById('comment').value=string; - - selectBox = document.getElementById('margin_note_note_type'); - for(var x =0; x" - notetext << " - #{note.comment}" - else - headertext<< "
" - - notetext<< "#{simple_format(note.comment)}" - end - - - output << " -
-
- #{headertext} -
- #{name} at #{note.created_at.strftime('%m/%d/%y %H:%M')} -
#{note.type_label.titleize}: #{note.subject}
-
-
- -
- -
-
-
-
- #{notetext}" - if session[:user].nil? - output << "" - else - if @modal - output << "" - else - output << "" - end - end - output << "
-
-
- -
-
-
" - if(!note.children.nil? && note.children.size>0) - draw_note_tree_leaves(note.children,level+1,output,key) - end - end - end - def draw_tree(root, id = nil, type = "Menu") if id.nil? id = root.children.first.id diff --git a/app/views/margin_notes/_proposal.html.erb b/app/views/margin_notes/_proposal.html.erb deleted file mode 100644 index cacd1d0cf..000000000 --- a/app/views/margin_notes/_proposal.html.erb +++ /dev/null @@ -1,94 +0,0 @@ - - -
-
- Current Value -<%=@old_value%> -
- -
- -
- - -
-<%=draw_note_tree(@margin_notes)%> -
- - -
-');toggleHide('proposalForm','forms');toggleHide('form','');toggleHide('buttons','');document.getElementById('noteParent').value='';"> -<%if @modal%><%end%> -
-
- - diff --git a/app/views/margin_notes/_show.html.erb b/app/views/margin_notes/_show.html.erb deleted file mode 100644 index c30e2a084..000000000 --- a/app/views/margin_notes/_show.html.erb +++ /dev/null @@ -1,127 +0,0 @@ - - -<% -uniq = Time.now.to_i -javascripts = "resetNoteForm(#{uniq});" - unless @concept.nil? - javascripts << "refreshCache('#{@concept.id}');" - end - -%> - -<%# to keep IDs from gettin mixed up%> -<%if @modal%> -