From ee5deed255a9e8f0b2c2f36d9e4227d5ca68bdd3 Mon Sep 17 00:00:00 2001 From: hjkhjk54 Date: Mon, 28 Nov 2011 17:09:53 +0000 Subject: [PATCH] updates to javascript for adding external concept --- productMods/edit/forms/js/addConcept.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/productMods/edit/forms/js/addConcept.js b/productMods/edit/forms/js/addConcept.js index f7facc6e..21de63c7 100644 --- a/productMods/edit/forms/js/addConcept.js +++ b/productMods/edit/forms/js/addConcept.js @@ -54,7 +54,7 @@ var addConceptForm = { this.externalConceptLabel = $('#conceptLabel'); this.externalConceptSource = $('#conceptSource'); //remove links - this.removeTermLinks = $('a.remove'); + this.removeConceptLinks = $('a.remove'); this.errors = $('#errors'); }, @@ -74,7 +74,7 @@ var addConceptForm = { return addConceptForm.prepareSubmit(); }); - this.addTermButton.click(function() { + this.addConceptButton.click(function() { addConceptForm.initForm(); }); @@ -145,7 +145,7 @@ var addConceptForm = { var definedBy = conceptResult.definedBy; var type = conceptResult.type; var uri = conceptResult.uri; - htmlAdd+= addConceptForm.generateIndividualTermDisplay(uri, label, definition, type, definedBy); + htmlAdd+= addConceptForm.generateIndividualConceptDisplay(uri, label, definition, type, definedBy); } htmlAdd+= ""; } else { @@ -202,7 +202,7 @@ var addConceptForm = { this.externalConceptSource.val(conceptSources); return true; }, - generateIndividualTermDisplay: function(cuiURI, label, definition, type, definedBy) { + generateIndividualConceptDisplay: function(cuiURI, label, definition, type, definedBy) { var htmlAdd = "
  • " + "
    " + "" +