mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 17:23:04 +02:00
fixed #1905 History image are now clickable to go to edit
This commit is contained in:
@@ -411,6 +411,8 @@ function lineConstructor(line, id, imageDisplay) {
|
|||||||
newLine.find(".type-name").html(line.IMAGENAME);
|
newLine.find(".type-name").html(line.IMAGENAME);
|
||||||
newLine.find(".type-icon").html(line.IMAGE);
|
newLine.find(".type-icon").html(line.IMAGE);
|
||||||
newLine.find(".type-id").html("#" + line.IMAGEID);
|
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();
|
newLine.find(".type-id").show();
|
||||||
} else {
|
} else {
|
||||||
newLine.find(".type-icon .icon-file-image").removeClass("icon-file-image");
|
newLine.find(".type-icon .icon-file-image").removeClass("icon-file-image");
|
||||||
|
|||||||
@@ -48,6 +48,8 @@ const str_tags = "{'Tags'|translate}";
|
|||||||
const unit_MB = "{"%s MB"|@translate}";
|
const unit_MB = "{"%s MB"|@translate}";
|
||||||
const str_guest = '{'guest'|@translate}';
|
const str_guest = '{'guest'|@translate}';
|
||||||
const str_contact_form = '{'Contact Form'|@translate}';
|
const str_contact_form = '{'Contact Form'|@translate}';
|
||||||
|
const str_edit_img = '{'Edit photo'|@translate}';
|
||||||
|
|
||||||
const guest_id = {$guest_id};
|
const guest_id = {$guest_id};
|
||||||
{/footer_script}
|
{/footer_script}
|
||||||
|
|
||||||
@@ -188,7 +190,7 @@ const guest_id = {$guest_id};
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="type-section">
|
<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">
|
<span class="icon-ellipsis-vert toggle-img-option">
|
||||||
<div class="img-option">
|
<div class="img-option">
|
||||||
<a class="add-img-as-filter icon-filter"> {'Add as filter'|translate} </a>
|
<a class="add-img-as-filter icon-filter"> {'Add as filter'|translate} </a>
|
||||||
@@ -285,6 +287,10 @@ jQuery(document).ready( function() {
|
|||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.no-img {
|
||||||
|
cursor: default !important;
|
||||||
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
padding: 0 20px;
|
padding: 0 20px;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user