File tree Expand file tree Collapse file tree 2 files changed +38
-7
lines changed
opengrok-web/src/main/webapp Expand file tree Collapse file tree 2 files changed +38
-7
lines changed Original file line number Diff line number Diff line change @@ -876,7 +876,7 @@ a.scope { /* scope */ color: steelblue; font-weight: bol
876
876
width : calc (
877
877
100% /* whole window */
878
878
- 20px /* padding-left + padding-right */
879
- );
879
+ );
880
880
}
881
881
882
882
.intelli-window {
@@ -887,19 +887,31 @@ a.scope { /* scope */ color: steelblue; font-weight: bol
887
887
.symbol-highlighted .hightlight-color-1 {
888
888
/* yellow */
889
889
background-color : # ffd700 ;
890
- background-color : rgb (255 , 215 , 0 );
891
890
}
892
891
893
892
.symbol-highlighted .hightlight-color-2 {
894
893
/* green */
895
894
background-color : # 00ff00 ;
896
- background-color : rgb (0 , 255 , 0 );
897
895
}
898
896
899
897
.symbol-highlighted .hightlight-color-3 {
900
898
/* blue */
901
899
background-color : # 00ccff ;
902
- background-color : rgb (0 , 204 , 255 );
900
+ }
901
+
902
+ .symbol-highlighted .hightlight-color-4 {
903
+ /* purple */
904
+ background-color : # F653F8 ;
905
+ }
906
+
907
+ .symbol-highlighted .hightlight-color-5 {
908
+ /* orange */
909
+ background-color : rgb (242 , 132 , 34 );
910
+ }
911
+
912
+ .symbol-highlighted .hightlight-color-6 {
913
+ /* light green */
914
+ background-color : # B6EBB5 ;
903
915
}
904
916
905
917
.messages-window {
Original file line number Diff line number Diff line change 875
875
}
876
876
break ;
877
877
case 53 : // 5
878
+ if ( that . symbol && that . unhighlight ( that . symbol ) . length === 0 ) {
879
+ that . highlight ( that . symbol , 4 ) ;
880
+ }
881
+ break ;
882
+ case 54 : // 6
883
+ if ( that . symbol && that . unhighlight ( that . symbol ) . length === 0 ) {
884
+ that . highlight ( that . symbol , 5 ) ;
885
+ }
886
+ break ;
887
+ case 55 : // 5
888
+ if ( that . symbol && that . unhighlight ( that . symbol ) . length === 0 ) {
889
+ that . highlight ( that . symbol , 6 ) ;
890
+ }
891
+ break ;
892
+ case 56 : // 7
878
893
that . unhighlightAll ( ) ;
879
894
break ;
880
895
case 110 : // n
963
978
}
964
979
return this . getSymbols ( ) . filter ( ".symbol-highlighted" ) . filter ( function ( ) {
965
980
return $ ( this ) . text ( ) === symbol ;
966
- } ) . removeClass ( 'symbol-highlighted' ) .
967
- removeClass ( "hightlight-color-1 hightlight-color-2 hightlight-color-3" ) ;
981
+ } ) . removeClass ( 'symbol-highlighted' )
982
+ . removeClass ( function ( index , className ) {
983
+ return ( className . match ( / ( ^ | \s ) h i g h t l i g h t - c o l o r - \S + / g) || [ ] ) . join ( ' ' ) ;
984
+ } ) ;
968
985
} ,
969
986
unhighlightAll : function ( ) {
970
987
this . $last_highlighted_current = undefined ;
971
988
return this . getSymbols ( ) . filter ( ".symbol-highlighted" ) .
972
989
removeClass ( "symbol-highlighted" ) .
973
- removeClass ( "hightlight-color-1 hightlight-color-2 hightlight-color-3" ) ;
990
+ removeClass ( function ( index , className ) {
991
+ return ( className . match ( / ( ^ | \s ) h i g h t l i g h t - c o l o r - \S + / g) || [ ] ) . join ( ' ' ) ;
992
+ } ) ;
974
993
} ,
975
994
scrollTop : function ( $el ) {
976
995
if ( this . options . scrollTop ) {
You can’t perform that action at this time.
0 commit comments