mirror of
				https://github.com/searxng/searxng
				synced 2024-01-01 19:24:07 +01:00 
			
		
		
		
	Merge pull request #2346 from return42/fix-1566
[mod] Ignore autocomplete_min on queries that include '!' (!bang)
This commit is contained in:
		
						commit
						5a3f99ee1a
					
				
					 3 changed files with 9 additions and 2 deletions
				
			
		
							
								
								
									
										2
									
								
								searx/static/themes/simple/js/searxng.min.js
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								searx/static/themes/simple/js/searxng.min.js
									
										
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							|  | @ -72,6 +72,13 @@ | |||
|               form.submit(); | ||||
|             } | ||||
|           }, | ||||
|           _MinChars: function () { | ||||
|             if (this.Input.value.indexOf('!') > -1) { | ||||
|               return 0; | ||||
|             } else { | ||||
|               return AutoComplete.defaults._MinChars.call(this); | ||||
|             } | ||||
|           }, | ||||
|           KeyboardMappings: Object.assign({}, AutoComplete.defaults.KeyboardMappings, { | ||||
|             "KeyUpAndDown_up": Object.assign({}, AutoComplete.defaults.KeyboardMappings.KeyUpAndDown_up, { | ||||
|               Callback: function (event) { | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Markus Heiser
						Markus Heiser