mirror of
				https://github.com/janeczku/calibre-web
				synced 2025-10-31 15:23:02 +00:00 
			
		
		
		
	Split event listener and selector string
Event and selectors appear to have been accidentally combined. The result is that typing in any input triggers a call to the `/get_matching_tags` route. We can probably limit the selector farther to only fire when `#tags` is typed into.
This commit is contained in:
		| @@ -162,7 +162,7 @@ var promiseLanguages = languages.initialize(); | ||||
|             }); | ||||
|     }); | ||||
|  | ||||
| $("form").on("change input typeahead:selected", function(data){ | ||||
| $("form").on("change", "input.typeahead:selected", function(){ | ||||
|     var form = $("form").serialize(); | ||||
|     $.getJSON( getPath()+"/get_matching_tags", form, function( data ) { | ||||
|       $(".tags_click").each(function() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jonathan Rehm
					Jonathan Rehm