diff --git a/productMods/edit/forms/addRoleToPersonTwoStage.jsp b/productMods/edit/forms/addRoleToPersonTwoStage.jsp index 1838ff2d..14b2cd90 100644 --- a/productMods/edit/forms/addRoleToPersonTwoStage.jsp +++ b/productMods/edit/forms/addRoleToPersonTwoStage.jsp @@ -298,17 +298,6 @@ public static Log log = LogFactory.getLog("edu.cornell.mannlib.vitro.webapp.jsp. "rangeLang" : "", "assertions" : [ "${n3ForRoleToActivity}" ] }, - "existingActivityLabel" : { /* Needed iff we return from an invalid submission */ - "newResource" : "false", - "validators" : [ ], - "optionsType" : "UNDEFINED", - "literalOptions" : [ ], - "predicateUri" : "", - "objectClassUri" : "", - "rangeDatatypeUri" : "", - "rangeLang" : "", - "assertions" : [ ] - }, "roleLabel" : { "newResource" : "false", "validators" : [ "nonempty","datatype:${stringDatatypeUriJson}" ], @@ -417,7 +406,6 @@ public static Log log = LogFactory.getLog("edu.cornell.mannlib.vitro.webapp.jsp. <%-- RY maybe make this a label and input field. See what looks best. --%>

(Verify this match)

- <%-- Needed iff we return from an invalid submission --%>

diff --git a/productMods/edit/forms/js/customFormWithAdvanceTypeSelection.js b/productMods/edit/forms/js/customFormWithAdvanceTypeSelection.js index 0d532fdf..cbcf01c7 100644 --- a/productMods/edit/forms/js/customFormWithAdvanceTypeSelection.js +++ b/productMods/edit/forms/js/customFormWithAdvanceTypeSelection.js @@ -53,7 +53,7 @@ var customForm = { this.acSelection = this.form.find('.acSelection'); this.acSelectionInfo = this.form.find('.acSelectionInfo'); this.acUriReceiver = this.form.find('.acUriReceiver'); - this.acLabelReceiver = this.form.find('.acLabelReceiver'); + //this.acLabelReceiver = this.form.find('.acLabelReceiver'); this.verifyMatch = this.form.find('.verifyMatch'); this.verifyMatchBaseHref = this.verifyMatch.attr('href'); this.acSelectorWrapper = this.acSelector.parent(); @@ -161,7 +161,7 @@ var customForm = { initFormWithValidationErrors: function() { var uri = this.acUriReceiver.val(), - label = this.acLabelReceiver.val(); + label = this.acSelector.val(); // Call initFormFullView first, because showAutocompleteSelection needs // acType, which is set in initFormFullView. @@ -324,7 +324,7 @@ var customForm = { showAutocompleteSelection: function(label, uri) { this.acSelectorWrapper.hide(); - this.acSelector.attr('disabled', 'disabled'); + //this.acSelector.attr('disabled', 'disabled'); // If only one form step, type is pre-selected, and the label is coded in the html. if (this.formSteps > 1) { @@ -334,7 +334,6 @@ var customForm = { this.acSelection.show(); this.acUriReceiver.val(uri); - this.acLabelReceiver.val(label); // RY PROBABLY DON"T NEED THIS AT ALL???? this.acSelector.val(label); this.acSelectionInfo.html(label); this.verifyMatch.attr('href', this.verifyMatchBaseHref + uri); @@ -354,11 +353,9 @@ var customForm = { undoAutocompleteSelection: function() { this.acSelectorWrapper.show(); - this.acSelector.attr('disabled', ''); - this.acSelector.val(''); this.hideFields(this.acSelection); + this.acSelector.val(''); this.acUriReceiver.val(''); - this.acLabelReceiver.val(''); this.acSelectionInfo.html(''); this.verifyMatch.attr('href', this.verifyMatchBaseHref);