mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-05 17:32:25 +02:00
fixes #1574 good message when unlocking the gallery
This commit is contained in:
@@ -10,7 +10,12 @@ const unit_MB = "{"%s MB"|@translate}"
|
||||
let selected = [];
|
||||
$(".lock-gallery-button").each(function() {
|
||||
const gallery_tip = '{"A locked gallery is only visible to administrators"|@translate|@escape:'javascript'}';
|
||||
let title = '{"Are you sure you want to lock the gallery?"|@translate}';
|
||||
{if (isset($U_MAINT_LOCK_GALLERY))}
|
||||
let title = '{"Are you sure you want to lock the gallery?"|@translate}';
|
||||
{else}
|
||||
let title = '{"Are you sure you want to unlock the gallery?"|@translate}';
|
||||
{/if}
|
||||
|
||||
let confirm_msg_gallery = '{"Yes, I want to lock the gallery"|@translate}';
|
||||
let cancel_msg_gallery = '{"Keep it unlocked"|@translate}';
|
||||
$(this).pwg_jconfirm_follow_href({
|
||||
|
||||
Reference in New Issue
Block a user