diff options
-rw-r--r-- | web/cobrands/fixmystreet/assets.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/web/cobrands/fixmystreet/assets.js b/web/cobrands/fixmystreet/assets.js index d367eae8c..f68ad6caf 100644 --- a/web/cobrands/fixmystreet/assets.js +++ b/web/cobrands/fixmystreet/assets.js @@ -1016,10 +1016,12 @@ fixmystreet.message_controller = (function() { var $msg; if (typeof stopper.message === 'function') { $msg = stopper.message(); - $msg.attr('id', stopperId); } else { - $msg = $('<p id="' + stopperId + '" class="box-warning">' + stopper.message + '</p>'); + $msg = $('<p class="box-warning">' + stopper.message + '</p>'); } + $msg.attr('id', stopperId); + $msg.attr('role', 'alert'); + $msg.attr('aria-live', 'assertive'); if ($id.length) { $id.replaceWith($msg); |