fixed #1783 added image filter from the edit image page

This commit is contained in:
Matthieu Leproux
2022-11-09 12:41:49 +01:00
parent e42f942020
commit 453de4a3d1
5 changed files with 8 additions and 2 deletions
+3
View File
@@ -6,6 +6,9 @@ $(document).ready(() => {
if (current_param.ip != "") {
addIpFilter(current_param.ip);
}
if (current_param.image_id != "") {
addImageFilter(current_param.image_id);
}
$(".elem-type-select").on("change", function (e) {
console.log($(".elem-type-select option:selected").attr("value"));
+1 -1
View File
@@ -25,7 +25,7 @@ var current_param = {
3: "other"
},
user_id: "-1",
image_id: "",
image_id: {if isset($IMAGE_ID)}"{$IMAGE_ID}"{else}""{/if},
filename: "",
ip:{if isset($IP)}"{$IP}"{else}""{/if},
display_thumbnail: "display_thumbnail_classic",
@@ -108,6 +108,7 @@ $('#action-delete-picture').on('click', function() {
<a class="icon-eye unavailable" title="{'You don\'t have access to this photo'|translate}"></a>
{/if}
<a class="icon-download" href="{$U_DOWNLOAD}" title="{'Download'|translate}"></a>
<a class="icon-signal" href="{$U_HISTORY}" title="{'cONSULTER L\'HISTORIQU'|translate}"></a>
{if !url_is_remote($PATH)}
<a class="icon-arrows-cw" href="{$U_SYNC}" title="{'Synchronize metadata'|@translate}"></a>
<a class="icon-trash" title="{'delete photo'|@translate}" id='action-delete-picture'></a>