From aaeca2fd0871b337bb4190823fe6204a7c645824 Mon Sep 17 00:00:00 2001 From: Graham Triggs Date: Fri, 22 Sep 2017 08:56:50 +0100 Subject: [PATCH] Fix Javascript element enabling --- .../forms/js/addAuthorsToInformationResource.js | 16 ++++++++-------- .../forms/js/addEditorsToInformationResource.js | 12 ++++++------ .../edit/forms/js/manageWebpagesForIndividual.js | 2 +- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/webapp/src/main/webapp/templates/freemarker/edit/forms/js/addAuthorsToInformationResource.js b/webapp/src/main/webapp/templates/freemarker/edit/forms/js/addAuthorsToInformationResource.js index 81f3bb98..9592842a 100644 --- a/webapp/src/main/webapp/templates/freemarker/edit/forms/js/addAuthorsToInformationResource.js +++ b/webapp/src/main/webapp/templates/freemarker/edit/forms/js/addAuthorsToInformationResource.js @@ -694,7 +694,7 @@ var addAuthorForm = { $(this).show(); }); addAuthorForm.showFormButton.removeClass('disabledSubmit'); - addAuthorForm.showFormButton.attr('disabled',''); + addAuthorForm.showFormButton.attr('disabled',false); } else { $('img#indicatorTwo').fadeOut(100, function() { @@ -705,7 +705,7 @@ var addAuthorForm = { $(this).show(); }); addAuthorForm.submit.removeClass('disabledSubmit'); - addAuthorForm.submit.attr('disabled',''); + addAuthorForm.submit.attr('disabled',false); } }); @@ -791,8 +791,8 @@ var addAuthorForm = { this.selectedOrg.addClass("acSelection"); this.selectedOrgName.addClass("acSelectionInfo"); this.orgLink.addClass("verifyMatch"); - this.orgName.attr('disabled', ''); - this.orgUriField.attr('disabled', ''); + this.orgName.attr('disabled', false); + this.orgUriField.attr('disabled', false); addAuthorForm.addAcHelpText(this.orgName); addAuthorForm.initAutocomplete(); @@ -818,10 +818,10 @@ var addAuthorForm = { this.selectedAuthor.addClass("acSelection"); this.selectedAuthorName.addClass("acSelectionInfo"); this.personLink.addClass("verifyMatch"); - this.acSelector.attr('disabled', ''); - this.firstNameField.attr('disabled', ''); - this.middleNameField.attr('disabled', ''); - this.lastNameField.attr('disabled', ''); + this.acSelector.attr('disabled', false); + this.firstNameField.attr('disabled', false); + this.middleNameField.attr('disabled', false); + this.lastNameField.attr('disabled', false); addAuthorForm.addAcHelpText(this.acSelector); addAuthorForm.initAutocomplete(); diff --git a/webapp/src/main/webapp/templates/freemarker/edit/forms/js/addEditorsToInformationResource.js b/webapp/src/main/webapp/templates/freemarker/edit/forms/js/addEditorsToInformationResource.js index dca31b4f..e39c64fd 100644 --- a/webapp/src/main/webapp/templates/freemarker/edit/forms/js/addEditorsToInformationResource.js +++ b/webapp/src/main/webapp/templates/freemarker/edit/forms/js/addEditorsToInformationResource.js @@ -612,7 +612,7 @@ var addEditorForm = { $(this).show(); }); addEditorForm.showFormButton.removeClass('disabledSubmit'); - addEditorForm.showFormButton.attr('disabled',''); + addEditorForm.showFormButton.attr('disabled',false); } else { $('img#indicatorTwo').fadeOut(100, function() { @@ -623,7 +623,7 @@ var addEditorForm = { $(this).show(); }); addEditorForm.submit.removeClass('disabledSubmit'); - addEditorForm.submit.attr('disabled',''); + addEditorForm.submit.attr('disabled',false); } }); @@ -687,10 +687,10 @@ var addEditorForm = { this.selectedEditor.addClass("acSelection"); this.selectedEditorName.addClass("acSelectionInfo"); this.personLink.addClass("verifyMatch"); - this.acSelector.attr('disabled', ''); - this.firstNameField.attr('disabled', ''); - this.middleNameField.attr('disabled', ''); - this.lastNameField.attr('disabled', ''); + this.acSelector.attr('disabled', false); + this.firstNameField.attr('disabled', false); + this.middleNameField.attr('disabled', false); + this.lastNameField.attr('disabled', false); addEditorForm.addAcHelpText(this.acSelector); addEditorForm.initAutocomplete(); diff --git a/webapp/src/main/webapp/templates/freemarker/edit/forms/js/manageWebpagesForIndividual.js b/webapp/src/main/webapp/templates/freemarker/edit/forms/js/manageWebpagesForIndividual.js index db969b36..6e8d9c55 100644 --- a/webapp/src/main/webapp/templates/freemarker/edit/forms/js/manageWebpagesForIndividual.js +++ b/webapp/src/main/webapp/templates/freemarker/edit/forms/js/manageWebpagesForIndividual.js @@ -210,7 +210,7 @@ var manageWebpages = { $(this).show(); }); $('a#showAddForm').removeClass('disabledSubmit'); - $('a#showAddForm').attr('disabled', ''); + $('a#showAddForm').attr('disabled', false); }); } else {