Add button to clear clipboard.
This commit is contained in:
		
							parent
							
								
									4e98fcf137
								
							
						
					
					
						commit
						5f7266c519
					
				
					 2 changed files with 8 additions and 1 deletions
				
			
		|  | @ -4,6 +4,12 @@ var on_clipboard_save_hooks = []; | |||
| 
 | ||||
| // Load save ///////////////////////////////////////////////////////////////////////////////////////
 | ||||
| 
 | ||||
| function clear_photo_clipboard() | ||||
| { | ||||
|     photo_clipboard.clear(); | ||||
|     save_photo_clipboard(); | ||||
| } | ||||
| 
 | ||||
| function load_photo_clipboard(event) | ||||
| { | ||||
|     console.log("Loading photo clipboard"); | ||||
|  |  | |||
|  | @ -78,7 +78,8 @@ body | |||
| <body> | ||||
| {{header.make_header(session=session)}} | ||||
| <div id="left"> | ||||
|     <span>The clipboard contains <span class="clipboard_count">0</span> items</span> | ||||
|     <span>The clipboard contains <span class="clipboard_count">0</span> items.</span> | ||||
|     <button id="clear_clipboard_button" class="red_button" onclick="clear_photo_clipboard()">Clear it.</button> | ||||
|     <div id="photo_card_holder"> | ||||
|     </div> | ||||
| </div> | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue