mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-08 18:30:53 +00:00
update share_link_expire_days_default
show default days after delete share link
This commit is contained in:
@@ -280,6 +280,7 @@ app["pageOptions"] = {
|
||||
share_link_password_min_length: {{ share_link_password_min_length }},
|
||||
share_link_expire_days_min: {{ share_link_expire_days_min }},
|
||||
share_link_expire_days_max: {{ share_link_expire_days_max }},
|
||||
share_link_expire_days_default: {{ share_link_expire_days_default }},
|
||||
guide_enabled: {% if guide_enabled %} true {% else %} false {% endif %},
|
||||
enable_wiki: {% if enable_wiki %} true {% else %} false {% endif %},
|
||||
enable_upload_folder: {% if enable_upload_folder %} true {% else %} false {% endif %},
|
||||
|
@@ -441,13 +441,13 @@ define([
|
||||
if (set_expiration) {
|
||||
if (app.pageOptions.share_link_expire_days_min > 0 ||
|
||||
app.pageOptions.share_link_expire_days_max > 0) {
|
||||
// do nothing
|
||||
expire_days_input.val(app.pageOptions.share_link_expire_days_default);
|
||||
} else {
|
||||
set_expiration_checkbox.prop('checked', false);
|
||||
expire_days_input.prop('disabled', true).addClass('input-disabled');
|
||||
}
|
||||
expire_days_input.val('');
|
||||
}
|
||||
}
|
||||
|
||||
// restore 'permission'
|
||||
$('[name="permission"]:eq(0)', form).prop('checked', true);
|
||||
|
Reference in New Issue
Block a user