Remove target=_blank from photo cards.

This will take some getting used to but nothing else in the system
uses target blank.
This commit is contained in:
voussoir 2022-11-11 20:04:57 -08:00
parent bdce60fce6
commit 25b0f4106f
2 changed files with 2 additions and 3 deletions

View file

@ -174,7 +174,6 @@ function create(photo, view)
const photo_card_filename = document.createElement("div"); const photo_card_filename = document.createElement("div");
photo_card_filename.className = "photo_card_filename"; photo_card_filename.className = "photo_card_filename";
const filename_link = document.createElement("a"); const filename_link = document.createElement("a");
filename_link.target = "_blank";
filename_link.href = `/photo/${photo.id}`; filename_link.href = `/photo/${photo.id}`;
filename_link.draggable = false; filename_link.draggable = false;
filename_link.innerText = photo.filename; filename_link.innerText = photo.filename;

View file

@ -151,7 +151,7 @@ ondrop="return cards.photos.drag_drop(event);"
draggable="true" draggable="true"
> >
<div class="photo_card_filename"> <div class="photo_card_filename">
<a target="_blank" href="/photo/{{photo.id}}" draggable="false">{{photo.basename}}</a> <a href="/photo/{{photo.id}}" draggable="false">{{photo.basename}}</a>
</div> </div>
<span class="photo_card_metadata"> <span class="photo_card_metadata">
@ -172,7 +172,7 @@ draggable="true"
{% set thumbnail_src = "/static/basic_thumbnails/" ~ thumbnail_src ~ ".png" %} {% set thumbnail_src = "/static/basic_thumbnails/" ~ thumbnail_src ~ ".png" %}
{% endif -%}{# if thumbnail #} {% endif -%}{# if thumbnail #}
<a class="photo_card_thumbnail" target="_blank" href="/photo/{{photo.id}}" draggable="false"> <a class="photo_card_thumbnail" href="/photo/{{photo.id}}" draggable="false">
<img loading="lazy" src="{{thumbnail_src}}" draggable="false"> <img loading="lazy" src="{{thumbnail_src}}" draggable="false">
</a> </a>
{% endif %}{# if grid #} {% endif %}{# if grid #}