diff --git a/emhttp/plugins/dynamix/ShareEdit.page b/emhttp/plugins/dynamix/ShareEdit.page index 371792e08..48165e658 100644 --- a/emhttp/plugins/dynamix/ShareEdit.page +++ b/emhttp/plugins/dynamix/ShareEdit.page @@ -541,14 +541,10 @@ _(Mover action)_:   : -
-_(Delete)_ +
+ :
-
-  -: -
@@ -1298,13 +1294,24 @@ function handleDeleteClick(button) { $(function() { + + $.post('/webGui/include/ShareList.php', { scan: "" }, function(e) { if (e == 1) { $('.empty').show(); $('.full').hide(); + /* Enable delete checkbox and update tooltip. */ + $('input[name="confirmDelete"]').prop('disabled', false).attr('title', ''); + $('#deleteLabel').attr('title', ''); } else { $('.full1').hide(); $('.full2').show(); + /* Disable delete checkbox and update tooltip. */ + $('input[name="confirmDelete"]').prop('disabled', true).attr('title', ''); + $('#deleteLabel').attr('title', ''); } });