@@ -436,7 +436,7 @@ <h3 class="panel-title"><span class="fa fa-info-circle fa-fw" aria-hidden="true"
436436 </ div >
437437 {% if eng.engagement_type == "CI/CD" %}
438438 < div >
439- < div class ="panel panel-default ">
439+ < div class ="panel panel-default-secondary ">
440440 < div class ="panel-heading ">
441441 < h3 class ="panel-title "> < span class ="fa fa-server " aria-hidden ="true "> </ span >
442442 CI/CD Engagement Details
@@ -593,18 +593,21 @@ <h4><span class="fa fa-key" aria-hidden="true"></span>
593593{% endblock %}
594594{% block postscript %}
595595 < 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 >
596597 < script type ="text/javascript ">
597598 $ ( 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 %}' ) ;
607605 } ) ;
606+
607+ $ ( document ) . on ( 'keypress' , null , 'i' , function ( ) {
608+ window . location . assign ( '{% url ' import_scan_results ' eng.id %}' ) ;
609+ } ) ;
610+
608611 $ ( document ) . ready ( function ( ) {
609612 $ ( '[data-toggle="tooltip"]' ) . tooltip ( ) ;
610613 } ) ;
0 commit comments