Put the callbacks next to their respective form functions.
This commit is contained in:
		
							parent
							
								
									eccb260a2b
								
							
						
					
					
						commit
						bbadd15129
					
				
					 1 changed files with 5 additions and 7 deletions
				
			
		|  | @ -300,13 +300,6 @@ function add_photo_tag_form() | |||
|     api.photos.add_tag(PHOTO_ID, tagname, add_photo_tag_callback); | ||||
|     add_tag_box.value = ""; | ||||
| } | ||||
| 
 | ||||
| function remove_photo_tag_form(photo_id, tagname) | ||||
| { | ||||
|     api.photos.remove_tag(photo_id, tagname, remove_photo_tag_callback); | ||||
|     add_tag_box.focus(); | ||||
| } | ||||
| 
 | ||||
| function add_photo_tag_callback(response) | ||||
| { | ||||
|     add_remove_photo_tag_callback(response); | ||||
|  | @ -336,6 +329,11 @@ function add_photo_tag_callback(response) | |||
|     this_tags.appendChild(li); | ||||
| } | ||||
| 
 | ||||
| function remove_photo_tag_form(photo_id, tagname) | ||||
| { | ||||
|     api.photos.remove_tag(photo_id, tagname, remove_photo_tag_callback); | ||||
|     add_tag_box.focus(); | ||||
| } | ||||
| function remove_photo_tag_callback(response) | ||||
| { | ||||
|     add_remove_photo_tag_callback(response); | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue