diff --git a/productMods/edit/forms/css/customForm.css b/productMods/edit/forms/css/customForm.css index 212cc32b..b3db32c1 100644 --- a/productMods/edit/forms/css/customForm.css +++ b/productMods/edit/forms/css/customForm.css @@ -92,6 +92,13 @@ div.acSelection { #ie67DisableWrapper { display: none; } +form.customForm input.concept-search { + float: right; + margin-right: 1em; + margin-bottom: 1em; + background-color: #317e95; +} + /* <------ DATE TIME*/ form.customForm label.dateTime { display: inline; diff --git a/productMods/edit/forms/js/addConcept.js b/productMods/edit/forms/js/addConcept.js index 2c957544..61292aba 100644 --- a/productMods/edit/forms/js/addConcept.js +++ b/productMods/edit/forms/js/addConcept.js @@ -55,6 +55,8 @@ var addConceptForm = { //remove links this.removeConceptLinks = $('a.remove'); this.errors = $('#errors'); + this.createOwn = $('#createOwn'); + this.orSpan = $('span.or') }, initPage: function() { @@ -86,6 +88,10 @@ var addConceptForm = { // Hide the button that shows the form this.showFormButtonWrapper.hide(); this.clearSearchResults(); + // Hide the create own link, add selected button and "or"" span + this.orSpan.hide(); + this.createOwn.hide(); + this.submit.hide(); //Also clear the search input this.searchTerm.val(""); this.cancel.unbind('click'); @@ -113,6 +119,11 @@ var addConceptForm = { clearErrors:function() { addConceptForm.errors.empty(); }, + showHiddenElements:function() { + this.orSpan.show(); + this.createOwn.show(); + this.submit.show(); + }, showConceptListOnlyView: function() { this.hideForm(); this.showFormButtonWrapper.show(); @@ -161,6 +172,7 @@ var addConceptForm = { } if(htmlAdd.length) { $('#selectedConcept').html(htmlAdd); + addConceptForm.showHiddenElements(); } }); return true;