js and css changes for concepts templates

This commit is contained in:
tworrall 2011-12-01 18:57:04 +00:00
parent 98c515b098
commit cc868a8930
2 changed files with 19 additions and 0 deletions

View file

@ -92,6 +92,13 @@ div.acSelection {
#ie67DisableWrapper { #ie67DisableWrapper {
display: none; display: none;
} }
form.customForm input.concept-search {
float: right;
margin-right: 1em;
margin-bottom: 1em;
background-color: #317e95;
}
/* <------ DATE TIME*/ /* <------ DATE TIME*/
form.customForm label.dateTime { form.customForm label.dateTime {
display: inline; display: inline;

View file

@ -55,6 +55,8 @@ var addConceptForm = {
//remove links //remove links
this.removeConceptLinks = $('a.remove'); this.removeConceptLinks = $('a.remove');
this.errors = $('#errors'); this.errors = $('#errors');
this.createOwn = $('#createOwn');
this.orSpan = $('span.or')
}, },
initPage: function() { initPage: function() {
@ -86,6 +88,10 @@ var addConceptForm = {
// Hide the button that shows the form // Hide the button that shows the form
this.showFormButtonWrapper.hide(); this.showFormButtonWrapper.hide();
this.clearSearchResults(); 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 //Also clear the search input
this.searchTerm.val(""); this.searchTerm.val("");
this.cancel.unbind('click'); this.cancel.unbind('click');
@ -113,6 +119,11 @@ var addConceptForm = {
clearErrors:function() { clearErrors:function() {
addConceptForm.errors.empty(); addConceptForm.errors.empty();
}, },
showHiddenElements:function() {
this.orSpan.show();
this.createOwn.show();
this.submit.show();
},
showConceptListOnlyView: function() { showConceptListOnlyView: function() {
this.hideForm(); this.hideForm();
this.showFormButtonWrapper.show(); this.showFormButtonWrapper.show();
@ -161,6 +172,7 @@ var addConceptForm = {
} }
if(htmlAdd.length) { if(htmlAdd.length) {
$('#selectedConcept').html(htmlAdd); $('#selectedConcept').html(htmlAdd);
addConceptForm.showHiddenElements();
} }
}); });
return true; return true;