Added the accessibility fix and added the hack to fix the challenge complete modal

This commit is contained in:
benmcmahon100
2015-08-30 00:31:07 +01:00
parent e3e1f16195
commit 71b6e21e77
2 changed files with 4 additions and 0 deletions

View File

@ -739,6 +739,7 @@ function bonfireExecute(shouldTest) {
setTimeout(function() { setTimeout(function() {
var $marginFix = $('.innerMarginFix'); var $marginFix = $('.innerMarginFix');
$marginFix.css('min-height', $marginFix.height()); $marginFix.css('min-height', $marginFix.height());
$('#submitButton').click();
}, 1000); }, 1000);
} }

View File

@ -88,6 +88,8 @@ block content
a(href="/challenges/#{challenge.dashedName}") a(href="/challenges/#{challenge.dashedName}")
span.capitalize= challenge.type + ': ' span.capitalize= challenge.type + ': '
span= challenge.title span= challenge.title
span.sr-only= "Complete"
else else
.row .row
@ -98,6 +100,7 @@ block content
a(href="/challenges/#{challenge.dashedName}") a(href="/challenges/#{challenge.dashedName}")
span.capitalize= challenge.type + ': ' span.capitalize= challenge.type + ': '
span= challenge.title span= challenge.title
span.sr-only= "InComplete"
//#announcementModal.modal(tabindex='-1') //#announcementModal.modal(tabindex='-1')
// .modal-dialog.animated.fadeInUp.fast-animation // .modal-dialog.animated.fadeInUp.fast-animation