Code cleanuo.

This commit is contained in:
dlandon
2024-05-27 06:49:05 -05:00
parent 55c79439f3
commit 095b931dad
+1
View File
@@ -1267,6 +1267,7 @@ function checkName(name) {
/* Remove hidden '.DS_Store' files from share before deleting the share. */
function handleDeleteClick(button) {
const deleteLabel = "<?= _('Delete') ?>";
if (button.value === deleteLabel) {
$.post('/webGui/include/ShareList.php', { delete: "<?=$name?>" }, function(response) {
if (response === 'success') {