Skip to content

Commit

Permalink
Merge pull request #23 from ontoportal-lirmm/pr/align-bioportal-agrop…
Browse files Browse the repository at this point in the history
…ortal-part-2

Feature: Align Bioportal and AgroPortal - part 3 - Update ontology viewer to Turbo
  • Loading branch information
alexskr authored Oct 23, 2024
2 parents 3e366ae + 0e42984 commit 1173da8
Show file tree
Hide file tree
Showing 43 changed files with 883 additions and 1,615 deletions.
4 changes: 0 additions & 4 deletions app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,13 @@
//
//= require bioportal
//= require admin/licenses
//= require bp_class_tree
//= require bp_ajax_controller
//= require bp_ontology_viewer
//= require bp_notes
//= require bp_ontolobridge
//= require bp_form_complete
//= require bp_create_mappings
//= require bp_analytics
//= require bp_search
//= require bp_mappings
//= require bp_visualize
//= require bp_admin
//= require bp_recommender
//= require bp_property_tree
Expand Down
16 changes: 0 additions & 16 deletions app/assets/javascripts/bioportal.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,6 @@ var cache = new Object();
var que= new Array();
var queIndex = 0;
var thread=0;
var currentOntology;
var currentConcept;

function setOntology(ontology){
currentOntology = ontology;
}
function setConcept(concept){
currentConcept = concept;
}

function getOntology(){
return currentOntology;
}
function getConcept(){
return currentConcept;
}

// Invalidate and Refetch
function refreshCache(nodeID){
Expand Down
209 changes: 0 additions & 209 deletions app/assets/javascripts/bp_class_tree.js.erb

This file was deleted.

32 changes: 1 addition & 31 deletions app/assets/javascripts/bp_notes.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,6 @@
var ontNotesTable;
var ont_columns = { archived: 3, date: 7, subjectSort: 2 };

jQuery(".ontologies.show").ready(function(){
setupNotesFaceboxSizing();
bindAddCommentClick();
bindAddProposalClick();
bindProposalChange();
bindReplyClick();
bindReplyCancelClick();
bindReplySaveClick();

jQuery("a.subscribe_to_notes").live("click", function(){
subscribeToNotes(this);
});

jQuery("#hide_archived_ont").click(function(){
hideOrUnhideArchivedOntNotes();
});

wireOntTable(jQuery("#ontology_notes_list"));
});

NOTES_PROPOSAL_TYPES = {
"ProposalNewClass": "New Class Proposal",
Expand All @@ -38,7 +19,7 @@ function setupNotesFacebox() {
jQuery(this).facebox();
jQuery(this).data().faceboxInit = true;
}
});;
})
}

function setupNotesFaceboxSizing() {
Expand Down Expand Up @@ -118,17 +99,6 @@ function bindReplySaveClick() {
});
}

function validateReply(button) {

}

function validateNote(button) {

}

function validateProposal(button) {

}

var displayError = function(button) {
jQuery(button).parent().children(".reply_status").html("Error, please try again");
Expand Down
Loading

0 comments on commit 1173da8

Please sign in to comment.