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:
parent
bdce60fce6
commit
25b0f4106f
2 changed files with 2 additions and 3 deletions
|
@ -174,7 +174,6 @@ function create(photo, view)
|
|||
const photo_card_filename = document.createElement("div");
|
||||
photo_card_filename.className = "photo_card_filename";
|
||||
const filename_link = document.createElement("a");
|
||||
filename_link.target = "_blank";
|
||||
filename_link.href = `/photo/${photo.id}`;
|
||||
filename_link.draggable = false;
|
||||
filename_link.innerText = photo.filename;
|
||||
|
|
|
@ -151,7 +151,7 @@ ondrop="return cards.photos.drag_drop(event);"
|
|||
draggable="true"
|
||||
>
|
||||
<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>
|
||||
|
||||
<span class="photo_card_metadata">
|
||||
|
@ -172,7 +172,7 @@ draggable="true"
|
|||
{% set thumbnail_src = "/static/basic_thumbnails/" ~ thumbnail_src ~ ".png" %}
|
||||
{% 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">
|
||||
</a>
|
||||
{% endif %}{# if grid #}
|
||||
|
|
Loading…
Reference in a new issue