File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,8 @@ function setInitialState() {
6666        communityWikisFilter : false , 
6767        excludeDuplicateQuestionsFilter : false , 
6868        answerTypeFilter : 0 , 
69-         customFilter : "" 
69+         customFilter : "" , 
70+         filterSuggestions : [ ] 
7071    } ,  function ( items )  { 
7172        if  ( items . shouldOpenInSameTab )  { 
7273            document . getElementById ( 'same_tab_result' ) . checked  =  true ; 
@@ -80,6 +81,24 @@ function setInitialState() {
8081        document . getElementById ( 'custom_filter' ) . value  =  items . customFilter ; 
8182
8283        $ ( ":input" ) . attr ( 'disabled' ,  false ) ; 
84+ 
85+         $ ( "#add_suggestion_filter" ) . click ( function ( )  { 
86+             addFilterSuggestionDiv ( ) ; 
87+         } ) ; 
88+ 
89+         $ ( "#filter_suggestion_count" ) . on ( "change" ,  function ( )  { 
90+             if  ( this . value  <  7 )  { 
91+                 $ ( "#add_suggestion_filter" ) . show ( ) ; 
92+             }  else  { 
93+                 $ ( "#add_suggestion_filter" ) . hide ( ) ; 
94+             } 
95+         } ) ; 
96+ 
97+         var  i ,  len  =  items . filterSuggestions . length ; 
98+         for  ( i = 0 ; i < len ; i ++ )  { 
99+             mFilterSuggestions [ i ]  =  items . filterSuggestions [ i ] ; 
100+             addFilterSuggestionDiv ( i ) 
101+         } 
83102    } ) ; 
84103} 
85104
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments