File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,15 @@ function initTogglers(){
1313}
1414
1515function initUpdateForm ( ) {
16+ $ ( '#target-manager' ) . change ( function ( ) {
17+ if ( $ ( this ) . val ( ) === '' ) { // selected "*"
18+ $ ( "#unique-only" ) . prop ( "checked" , false ) ;
19+ $ ( '#unique-only' ) . prop ( 'disabled' , true ) ;
20+ } else {
21+ $ ( '#unique-only' ) . prop ( 'disabled' , false ) ;
22+ }
23+ } ) ;
24+
1625 var curUrlParams = new URLSearchParams ( window . location . search ) ;
1726 $ ( '#target-period' ) . val ( curUrlParams . get ( 'period' ) ) ;
1827 if ( curUrlParams . get ( 'period_count' ) != null ) {
@@ -21,6 +30,7 @@ function initUpdateForm(){
2130 $ ( '#target-subsystem' ) . val ( curUrlParams . get ( 'subsystem' ) ) ;
2231 $ ( '#target-manager' ) . val ( curUrlParams . get ( 'manager' ) ) ;
2332 $ ( "#unique-only" ) . prop ( "checked" , curUrlParams . get ( 'unique-only' ) == "1" ) ;
33+ $ ( '#unique-only' ) . prop ( 'disabled' , $ ( '#target-manager' ) . val ( ) == '' ) ;
2434}
2535
2636// This handler is called when user clicks on the coverage percentage.
You can’t perform that action at this time.
0 commit comments