diff --git a/emhttp/languages/en_US/helptext.txt b/emhttp/languages/en_US/helptext.txt index 92ee679a46..fbe7d7bf23 100644 --- a/emhttp/languages/en_US/helptext.txt +++ b/emhttp/languages/en_US/helptext.txt @@ -1553,6 +1553,13 @@ Uncheck all disks in order to not exclude any disks disks which represent a subset of the Included/Excluded disks defined here. :end +:shares_emptying_disks_help: +This setting designates array disk(s) that are being *emptied* of User Share data, +typically as a prelude to removing the disk(s) from the array. + +Unlike the other Global Share Settings, this setting may be changed while the array is **Started**. +:end + :shares_exclusive_shares_help: If set to Yes, share directories under /mnt/user are actually symlinks to the share directory on a storage volume provided the following conditions are met: diff --git a/emhttp/plugins/dynamix/ShareSettings.page b/emhttp/plugins/dynamix/ShareSettings.page index a61a05f00c..171e6c9dff 100644 --- a/emhttp/plugins/dynamix/ShareSettings.page +++ b/emhttp/plugins/dynamix/ShareSettings.page @@ -18,6 +18,9 @@ Tag="share-alt" ?> : shares=='-'; var onOff = disabled ? 'disable':'enable'; form.shareUserInclude.disabled = disabled; form.shareUserExclude.disabled = disabled; - form.shareUserEmptying.disabled = disabled; $('#s1').dropdownchecklist(onOff); $('#s2').dropdownchecklist(onOff); - $('#s3').dropdownchecklist(onOff); + /* Emptying disk(s) lives in its own form so it can be changed while the array is + Started - emhttpd accepts it. Only disable it when user shares are turned off. */ + var emptyingDisabled = shares==null ? : shares=='-'; + document.share_emptying.shareUserEmptying.disabled = emptyingDisabled; + $('#s3').dropdownchecklist(emptyingDisabled ? 'disable':'enable'); }
@@ -144,15 +154,6 @@ _(Excluded disk(s))_: :shares_excluded_disks_help: -_(Emptying disk(s))_: -: - -:shares_emptying_disks_help: - _(Permit exclusive shares)_: : + + + + + +:shares_emptying_disks_help: + +  +: + + + +