File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 1
1
function openRuleDetailsDialog ( rule_result_id )
2
2
{
3
- $ ( "#detail-modal" ) . remove ( ) ;
4
-
5
3
/*DO NOT remove the aria-hidden="false" attribute from the following lines!
6
4
This attribute ensures that rule detail can be accessed by accessibility technologies such as screenreaders.*/
7
5
var closebutton = $ ( '<button type="button" class="close btn btn-sm btn-default" data-dismiss="modal" aria-hidden="false" title="Close">❌</button>' ) ;
@@ -16,6 +14,9 @@ function openRuleDetailsDialog(rule_result_id)
16
14
closebutton . css ( { "margin-top" : "-=23px" } ) ;
17
15
$ ( "#detail-modal-body" ) . append ( clone ) ;
18
16
17
+ $ ( '#detail-modal' ) . on ( 'hidden.bs.modal' , function ( e ) {
18
+ $ ( "#detail-modal" ) . remove ( ) ;
19
+ } )
19
20
$ ( "#detail-modal" ) . modal ( ) ;
20
21
21
22
return false ;
You can’t perform that action at this time.
0 commit comments