Rename photo_card_selector_checkbox photo_clipboard_selector_checkbox.
This commit is contained in:
		
							parent
							
								
									b8290d884e
								
							
						
					
					
						commit
						7c62c064cb
					
				
					 4 changed files with 7 additions and 7 deletions
				
			
		|  | @ -96,7 +96,7 @@ | ||||||
|     margin: 8px; |     margin: 8px; | ||||||
|     padding: 4px; |     padding: 4px; | ||||||
| } | } | ||||||
| .photo_card_list .photo_card_selector_checkbox | .photo_card_list .photo_clipboard_selector_checkbox | ||||||
| { | { | ||||||
|     grid-area: checkbox; |     grid-area: checkbox; | ||||||
|     align-self: center; |     align-self: center; | ||||||
|  | @ -119,7 +119,7 @@ | ||||||
| 
 | 
 | ||||||
|     border-radius: 8px; |     border-radius: 8px; | ||||||
| } | } | ||||||
| .photo_card_grid .photo_card_selector_checkbox | .photo_card_grid .photo_clipboard_selector_checkbox | ||||||
| { | { | ||||||
|     position:absolute; |     position:absolute; | ||||||
|     left:5px; |     left:5px; | ||||||
|  |  | ||||||
|  | @ -107,7 +107,7 @@ function apply_check_all() | ||||||
|     Run through all the photo cards on the page and set their checkbox to the |     Run through all the photo cards on the page and set their checkbox to the | ||||||
|     correct value. |     correct value. | ||||||
|     */ |     */ | ||||||
|     const checkboxes = document.getElementsByClassName("photo_card_selector_checkbox"); |     const checkboxes = document.getElementsByClassName("photo_clipboard_selector_checkbox"); | ||||||
|     for (const checkbox of checkboxes) |     for (const checkbox of checkboxes) | ||||||
|     { |     { | ||||||
|         photo_clipboard.apply_check(checkbox); |         photo_clipboard.apply_check(checkbox); | ||||||
|  | @ -205,7 +205,7 @@ function select_all_photos() | ||||||
|         photo_clipboard.clipboard.add(photo_div.dataset.id); |         photo_clipboard.clipboard.add(photo_div.dataset.id); | ||||||
|         photo_div.classList.remove("photo_card_unselected"); |         photo_div.classList.remove("photo_card_unselected"); | ||||||
|         photo_div.classList.add("photo_card_selected"); |         photo_div.classList.add("photo_card_selected"); | ||||||
|         const checkbox = photo_div.getElementsByClassName("photo_card_selector_checkbox")[0]; |         const checkbox = photo_div.getElementsByClassName("photo_clipboard_selector_checkbox")[0]; | ||||||
|         if (checkbox) |         if (checkbox) | ||||||
|         { |         { | ||||||
|             checkbox.checked = true; |             checkbox.checked = true; | ||||||
|  | @ -224,7 +224,7 @@ function unselect_all_photos() | ||||||
|         photo_clipboard.clipboard.delete(photo_div.dataset.id); |         photo_clipboard.clipboard.delete(photo_div.dataset.id); | ||||||
|         photo_div.classList.remove("photo_card_selected"); |         photo_div.classList.remove("photo_card_selected"); | ||||||
|         photo_div.classList.add("photo_card_unselected"); |         photo_div.classList.add("photo_card_unselected"); | ||||||
|         const checkbox = photo_div.getElementsByClassName("photo_card_selector_checkbox")[0]; |         const checkbox = photo_div.getElementsByClassName("photo_clipboard_selector_checkbox")[0]; | ||||||
|         if (checkbox) |         if (checkbox) | ||||||
|         { |         { | ||||||
|             checkbox.checked = false; |             checkbox.checked = false; | ||||||
|  |  | ||||||
|  | @ -199,7 +199,7 @@ | ||||||
|             </li> |             </li> | ||||||
|             <li> |             <li> | ||||||
|                 <label> |                 <label> | ||||||
|                 <input id="clipboard_checkbox" type="checkbox" class="photo_card_selector_checkbox" data-photo-id="{{photo.id}}" onchange="return photo_clipboard.on_photo_select(event);" |                 <input id="clipboard_checkbox" type="checkbox" class="photo_clipboard_selector_checkbox" data-photo-id="{{photo.id}}" onchange="return photo_clipboard.on_photo_select(event);" | ||||||
|                 />Clipboard |                 />Clipboard | ||||||
|                 </label> |                 </label> | ||||||
|             </li> |             </li> | ||||||
|  |  | ||||||
|  | @ -29,7 +29,7 @@ | ||||||
|     data-id="{{photo.id}}" |     data-id="{{photo.id}}" | ||||||
|     class="photo_card photo_card_{{view}} photo_card_unselected {%if photo.searchhidden%}photo_card_searchhidden{%endif%}" |     class="photo_card photo_card_{{view}} photo_card_unselected {%if photo.searchhidden%}photo_card_searchhidden{%endif%}" | ||||||
| > | > | ||||||
|     <input type="checkbox" class="photo_card_selector_checkbox" onclick="return photo_clipboard.on_photo_select(event);"/> |     <input type="checkbox" class="photo_clipboard_selector_checkbox" onclick="return photo_clipboard.on_photo_select(event);"/> | ||||||
|     <div class="photo_card_filename"><a target="_blank" href="/photo/{{photo.id}}">{{photo.basename}}</a></div> |     <div class="photo_card_filename"><a target="_blank" href="/photo/{{photo.id}}">{{photo.basename}}</a></div> | ||||||
|     <span class="photo_card_metadata"> |     <span class="photo_card_metadata"> | ||||||
|         {{- metadata_inner|safe -}} |         {{- metadata_inner|safe -}} | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue