fixed #1905 History image are now clickable to go to edit

This commit is contained in:
MatthieuLP
2023-04-25 10:40:34 +02:00
parent 04e47bab39
commit 8b2216bff9
2 changed files with 9 additions and 1 deletions

View File

@@ -411,6 +411,8 @@ function lineConstructor(line, id, imageDisplay) {
newLine.find(".type-name").html(line.IMAGENAME);
newLine.find(".type-icon").html(line.IMAGE);
newLine.find(".type-id").html("#" + line.IMAGEID);
newLine.find(".type-icon").attr("href", line.EDIT_IMAGE).removeClass("no-img")
newLine.find(".type-icon img").attr("title", str_edit_img).addClass("tiptip")
newLine.find(".type-id").show();
} else {
newLine.find(".type-icon .icon-file-image").removeClass("icon-file-image");

View File

@@ -48,6 +48,8 @@ const str_tags = "{'Tags'|translate}";
const unit_MB = "{"%s MB"|@translate}";
const str_guest = '{'guest'|@translate}';
const str_contact_form = '{'Contact Form'|@translate}';
const str_edit_img = '{'Edit photo'|@translate}';
const guest_id = {$guest_id};
{/footer_script}
@@ -188,7 +190,7 @@ const guest_id = {$guest_id};
</div>
<div class="type-section">
<span class="type-icon"> <i class="icon-file-image"> </i> </span>
<a class="type-icon no-img" target="_blank"> <i class="icon-file-image"> </i> </a>
<span class="icon-ellipsis-vert toggle-img-option">
<div class="img-option">
<a class="add-img-as-filter icon-filter"> {'Add as filter'|translate} </a>
@@ -285,6 +287,10 @@ jQuery(document).ready( function() {
opacity: 0.5;
}
.no-img {
cursor: default !important;
}
.container {
padding: 0 20px;
}