Skip to content

Commit

Permalink
Merge pull request #83 from hmrc/ATED_3614
Browse files Browse the repository at this point in the history
aria expand removed on radio input
  • Loading branch information
Dan Pudwell authored Sep 19, 2017
2 parents 00ec1e7 + 70774ce commit 559ab73
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 16 deletions.
5 changes: 0 additions & 5 deletions public/javascript/propertyDetailsNewBuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,19 @@ function showHideIsNewBuild() {

if(yesSelected.is(':checked')) {
displayTrueDiv.show();
yesSelected.attr('aria-expanded', 'true')
}
if(noSelected.is(':checked')) {
displayFalseDiv.show();
noSelected.attr('aria-expanded', 'true')
}
$('input[type=radio][name=isNewBuild]').change(function(){
if(this.value == 'true') {
yesSelected.attr('aria-expanded', 'true')
displayTrueDiv.show();
displayFalseDiv.hide();
clearInputFields(notNewBuildFields)
} else {
noSelected.attr('aria-expanded', 'true')
displayTrueDiv.hide();
displayFalseDiv.show();
clearInputFields(newBuildFields)
noSelected.attr('aria-expanded', 'true')
}
});
}
Expand Down
3 changes: 0 additions & 3 deletions public/javascript/propertyDetailsOwnedBefore.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,15 @@ function showHideOwnedBefore2012() {

if(yesSelected.is(':checked')) {
displayTrueDiv.show();
yesSelected.attr('aria-expanded', 'true')
}
if(noSelected.is(':checked')) {
displayFalseDiv.show();
}
$('input[type=radio][name=isOwnedBefore2012]').change(function(){
if(this.value == 'true') {
yesSelected.attr('aria-expanded', 'true')
displayTrueDiv.show();
displayFalseDiv.hide();
} else {
noSelected.attr('aria-expanded', 'false')
displayTrueDiv.hide();
displayFalseDiv.show();
ownedBefore2012Value.val("");
Expand Down
3 changes: 0 additions & 3 deletions public/javascript/propertyDetailsProfessionallyValued.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,13 @@ function showHideValuedByAgent() {
displayTrueDiv.hide();

if (yesSelected.is(':checked')) {
yesSelected.attr('aria-expanded', 'true')
displayTrueDiv.show();
}

$('input[type=radio][name=isValuedByAgent]').change(function () {
if (this.value == 'true') {
yesSelected.attr('aria-expanded', 'true')
displayTrueDiv.show();
} else {
yesSelected.attr('aria-expanded', 'false')
displayTrueDiv.hide();
clearInputFields(fieldsArray)
}
Expand Down
2 changes: 0 additions & 2 deletions public/javascript/propertyDetailsRevalued.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@ function showHideRevalued() {
displayFalseDiv.hide();

if(yesSelected.is(':checked')) {
yesSelected.attr('aria-expanded', 'true')
displayTrueDiv.show();
}
if(noSelected.is(':checked')) {
ynoSelected.attr('aria-expanded', 'true')
displayFalseDiv.show();
continueButton.hide();
}
Expand Down
3 changes: 0 additions & 3 deletions public/javascript/propertyDetailsTaxAvoidance.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,12 @@ function showHideAvoidanceScheme() {

if(yesSelected.is(':checked')) {
displayTrueDiv.show();
yesSelected.attr('aria-expanded', 'true')
}
$('input[type=radio][name=isTaxAvoidance]').change(function(){
if(this.value == 'true') {
yesSelected.attr('aria-expanded', 'true')
displayTrueDiv.show();

} else {
noSelected.attr('aria-expanded', 'false')
displayTrueDiv.hide();
avoidanceRefNumber.val("");
promoterRefNumber.val("");
Expand Down

0 comments on commit 559ab73

Please sign in to comment.