mirror of
https://framagit.org/fiat-tux/hat-softwares/lutim.git
synced 2026-03-28 17:42:54 +01:00
🐛 — update gallery, zip and random URLs when closing image dialog box
This commit is contained in:
@@ -4,6 +4,7 @@ Revision history for Lutim
|
||||
- ⬆️ UUpdate jQuery
|
||||
- 💥 BREAKING CHANGE: no more twitter cards
|
||||
- 🎨 — Use template literals in js
|
||||
- 🐛 — Gallery, zip and random URLs are now updated when closing image dialog box
|
||||
|
||||
0.15.0 2023-12-19
|
||||
- ✨ — Add --nuke option to image command
|
||||
|
||||
@@ -49,7 +49,7 @@ function buildMessage(success, msg) {
|
||||
</a>
|
||||
</div>` : '';
|
||||
return `<div class="alert alert-success" id="alert-${msg.real_short}">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<button id="close-${msg.real_short}" type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<div class="row">${thumb}
|
||||
<div class="col-sm-11">
|
||||
<h4>
|
||||
@@ -208,6 +208,12 @@ function bindddz(firstview, deleteday) {
|
||||
</div>`);
|
||||
}
|
||||
$('.messages').append(buildMessage(data.success, data.msg));
|
||||
$(`#close-${data.msg.real_short}`).on('click', function(e) {
|
||||
e.preventDefault();
|
||||
rmFromShortHash(`${data.msg.short}.${data.msg.ext}`);
|
||||
rmFromZipHash(data.msg.short);
|
||||
rmFromRandomHash(data.msg.short);
|
||||
});
|
||||
$(`#del-${data.msg.real_short}`).on('click', function(e) {
|
||||
e.preventDefault();
|
||||
rmFromShortHash(`${data.msg.short}.${data.msg.ext}`);
|
||||
|
||||
@@ -8,7 +8,7 @@ function buildMessage(success, msg) {
|
||||
</a>
|
||||
</div>` : '';
|
||||
return `<div class="alert alert-success" id="alert-${msg.real_short}">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<button id="close-${msg.real_short}" type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<div>${thumb}
|
||||
<div>
|
||||
<h4>
|
||||
|
||||
Reference in New Issue
Block a user