mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-07 13:55:03 +02:00
fix #1740 better UI for edit btn when the image is deleted
This commit is contained in:
@@ -301,7 +301,18 @@ function lineConstructor(line, id, imageDisplay) {
|
||||
fillHistoryResult(current_param);
|
||||
});
|
||||
}
|
||||
newLine.find(".edit-img").attr("href", line.EDIT_IMAGE)
|
||||
|
||||
if (line.EDIT_IMAGE != "") {
|
||||
newLine.find(".edit-img").attr("href", line.EDIT_IMAGE);
|
||||
} else {
|
||||
newLine.find(".edit-img")
|
||||
.attr("href", "#")
|
||||
.addClass("notClickable tiptip")
|
||||
.attr('title', str_no_longer_exist_photo)
|
||||
.on("click", (e) => {
|
||||
e.preventDefault();
|
||||
});
|
||||
}
|
||||
|
||||
switch (line.SECTION) {
|
||||
case "tags":
|
||||
|
||||
@@ -41,6 +41,7 @@ const str_favorites = "{'Your favorites'|translate}";
|
||||
const str_recent_cats = "{'Recent albums'|translate}";
|
||||
const str_recent_pics = "{'Recent photos'|translate}";
|
||||
const str_memories = "{'Memories'|translate}";
|
||||
const str_no_longer_exist_photo = "{'This photo no longer exists'|@translate}";
|
||||
const unit_MB = "{"%s MB"|@translate}";
|
||||
const str_guest = '{'guest'|@translate}';
|
||||
const guest_id = {$guest_id};
|
||||
@@ -276,6 +277,10 @@ jQuery(document).ready( function() {
|
||||
|
||||
<style>
|
||||
|
||||
.notClickable {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.container {
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
@@ -964,6 +964,7 @@ SELECT
|
||||
}
|
||||
else
|
||||
{
|
||||
$image_edit_string = '';
|
||||
$image_title.= ' unknown filename';
|
||||
}
|
||||
|
||||
|
||||
@@ -1317,4 +1317,5 @@ $lang['Delete %s format ?'] = 'Delete %s format ?';
|
||||
$lang['Installed on %s, %s'] = 'Installed on %s, %s';
|
||||
$lang['While restoring this plugin, it will be reset to its original parameters and associated data is going to be reset'] = 'While restoring this plugin, it will be reset to its original parameters and associated data is going to be reset';
|
||||
$lang['This picture is physically linked to this album, you can\'t dissociate them'] = 'This picture is physically linked to this album, you can\'t dissociate them.';
|
||||
$lang['This photo no longer exists'] = 'This photo no longer exists';
|
||||
// Leave this line empty
|
||||
|
||||
@@ -1319,4 +1319,5 @@ $lang['Delete %s format ?'] = 'Supprimer le format %s ?';
|
||||
$lang['Installed on %s, %s'] = 'Installé le %s, %s';
|
||||
$lang['While restoring this plugin, it will be reset to its original parameters and associated data is going to be reset'] = 'En restaurant ce plugin, il reviendra à son paramétrage d’origine et les données associées seront remises à zero';
|
||||
$lang['This picture is physically linked to this album, you can\'t dissociate them'] = 'Cette photo est physiquement liée à cet album, vous ne pouvez pas les dissocier.';
|
||||
$lang['This photo no longer exists'] = 'Cette photo n\'existe plus';
|
||||
// Leave this line empty
|
||||
|
||||
Reference in New Issue
Block a user