Let select_all, deselect_all ignore hidden cards.
So that ctrl+a after filtering only selects the filter results.
This commit is contained in:
		
							parent
							
								
									67a3472aad
								
							
						
					
					
						commit
						c5c67b9c69
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		|  | @ -346,6 +346,10 @@ function select_all() | |||
|     video_card_first_selected = null; | ||||
|     for (const video_card of document.getElementsByClassName("video_card")) | ||||
|     { | ||||
|         if (video_card.classList.contains("hidden")) | ||||
|         { | ||||
|             continue; | ||||
|         } | ||||
|         video_card.classList.add("video_card_selected"); | ||||
|     } | ||||
| } | ||||
|  | @ -369,6 +373,10 @@ function deselect_all() | |||
|     video_card_first_selected = null; | ||||
|     for (const video_card of Array.from(video_card_selections)) | ||||
|     { | ||||
|         if (video_card.classList.contains("hidden")) | ||||
|         { | ||||
|             continue; | ||||
|         } | ||||
|         video_card.classList.remove("video_card_selected"); | ||||
|     } | ||||
| } | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue