@@ -436,7 +436,7 @@ <h3 class="panel-title"><span class="fa fa-info-circle fa-fw" aria-hidden="true"
436
436
</ div >
437
437
{% if eng.engagement_type == "CI/CD" %}
438
438
< div >
439
- < div class ="panel panel-default ">
439
+ < div class ="panel panel-default-secondary ">
440
440
< div class ="panel-heading ">
441
441
< h3 class ="panel-title "> < span class ="fa fa-server " aria-hidden ="true "> </ span >
442
442
CI/CD Engagement Details
@@ -593,18 +593,21 @@ <h4><span class="fa fa-key" aria-hidden="true"></span>
593
593
{% endblock %}
594
594
{% block postscript %}
595
595
< script type ="text/javascript " src ="{% static "jquery-highlight /jquery.highlight.js" %}"> </ script >
596
+ < script type ="application/javascript " src ="{% static "jquery.hotkeys /jquery.hotkeys.js" %}"> </ script >
596
597
< script type ="text/javascript ">
597
598
$ ( function ( ) {
598
- $ ( document ) . on ( 'keypress' , function ( e ) {
599
- var key = String . fromCharCode ( e . which ) ;
600
- if ( key == 'e' ) {
601
- window . location . assign ( '{% url ' edit_engagement ' eng.id %}' ) ;
602
- } else if ( key === 'a' ) {
603
- window . location . assign ( '{% url ' add_tests ' eng.id %}' ) ;
604
- } else if ( key === 'i' ) {
605
- window . location . assign ( '{% url ' import_scan_results ' eng.id %}' ) ;
606
- }
599
+ $ ( document ) . on ( 'keypress' , null , 'e' , function ( ) {
600
+ window . location . assign ( '{% url ' edit_engagement ' eng.id %}' ) ;
601
+ } ) ;
602
+
603
+ $ ( document ) . on ( 'keypress' , null , 'a' , function ( ) {
604
+ window . location . assign ( '{% url ' add_tests ' eng.id %}' ) ;
607
605
} ) ;
606
+
607
+ $ ( document ) . on ( 'keypress' , null , 'i' , function ( ) {
608
+ window . location . assign ( '{% url ' import_scan_results ' eng.id %}' ) ;
609
+ } ) ;
610
+
608
611
$ ( document ) . ready ( function ( ) {
609
612
$ ( '[data-toggle="tooltip"]' ) . tooltip ( ) ;
610
613
} ) ;
0 commit comments