Fix call to cards.bookmarks.create, add rest of options.
This commit is contained in:
		
							parent
							
								
									5efad72425
								
							
						
					
					
						commit
						77cd0e871c
					
				
					 1 changed files with 8 additions and 1 deletions
				
			
		|  | @ -71,8 +71,15 @@ function create_bookmark_callback(response) | ||||||
|         return; |         return; | ||||||
|     } |     } | ||||||
|     const bookmark = response.data; |     const bookmark = response.data; | ||||||
|  |     const add_author = true; | ||||||
|     const add_delete_button = true; |     const add_delete_button = true; | ||||||
|     const bookmark_card = cards.bookmarks.create(bookmark, add_delete_button); |     const add_url_element = true; | ||||||
|  |     const bookmark_card = cards.bookmarks.create( | ||||||
|  |         bookmark, | ||||||
|  |         add_author, | ||||||
|  |         add_delete_button, | ||||||
|  |         add_url_element | ||||||
|  |     ); | ||||||
|     create_editor(bookmark_card); |     create_editor(bookmark_card); | ||||||
| 
 | 
 | ||||||
|     const bookmark_list = document.getElementById("bookmark_list"); |     const bookmark_list = document.getElementById("bookmark_list"); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue