Rename receive_callback -> tag_action_callback.
This commit is contained in:
		
							parent
							
								
									7e085d7585
								
							
						
					
					
						commit
						ac40c86e86
					
				
					 1 changed files with 5 additions and 5 deletions
				
			
		|  | @ -158,7 +158,7 @@ h2, h3 | |||
|                     {{tag_object.tag_object(tag, link='search', innertext=qualified_name, with_alt_description=True)-}} | ||||
|                     <button | ||||
|                     class="remove_tag_button red_button button_with_confirm" | ||||
|                     data-onclick="api.tags.remove_child('{{qualified_name.split('.')[-2]}}', '{{tag.name}}', receive_callback);" | ||||
|                     data-onclick="api.tags.remove_child('{{qualified_name.split('.')[-2]}}', '{{tag.name}}', tag_action_callback);" | ||||
|                     data-prompt="Unlink Tags?" | ||||
|                     data-confirm="Unlink" | ||||
|                     data-confirm-class="remove_tag_button_perm red_button" | ||||
|  | @ -173,7 +173,7 @@ h2, h3 | |||
|                     {{tag_object.tag_object(tag, link='search', innertext=qualified_name, with_alt_description=True)-}} | ||||
|                     <button | ||||
|                     class="remove_tag_button red_button button_with_confirm" | ||||
|                     data-onclick="api.tags.delete('{{qualified_name}}', receive_callback);" | ||||
|                     data-onclick="api.tags.delete('{{qualified_name}}', tag_action_callback);" | ||||
|                     data-prompt="Delete Tag?" | ||||
|                     data-confirm="Delete" | ||||
|                     data-confirm-class="remove_tag_button_perm red_button" | ||||
|  | @ -191,7 +191,7 @@ h2, h3 | |||
|                     {{tag_object.tag_object(tag, link='search', innertext=qualified_name + '+' + synonym)-}} | ||||
|                     <button | ||||
|                     class="remove_tag_button red_button button_with_confirm" | ||||
|                     data-onclick="api.tags.remove_synonym('{{tag.name}}', '{{synonym}}', receive_callback);" | ||||
|                     data-onclick="api.tags.remove_synonym('{{tag.name}}', '{{synonym}}', tag_action_callback);" | ||||
|                     data-prompt="Remove Synonym?" | ||||
|                     data-confirm="Remove" | ||||
|                     data-confirm-class="remove_tag_button_perm red_button" | ||||
|  | @ -227,11 +227,11 @@ function easybake_form() | |||
|         box.focus(); | ||||
|         return; | ||||
|     } | ||||
|     api.tags.easybake(easybake_string, receive_callback); | ||||
|     api.tags.easybake(easybake_string, tag_action_callback); | ||||
|     box.value = ""; | ||||
| } | ||||
| 
 | ||||
| function receive_callback(response) | ||||
| function tag_action_callback(response) | ||||
| { | ||||
|     responses = response["data"]; | ||||
|     if (!(responses instanceof Array)) | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue