mirror of
https://github.com/haiwen/seahub.git
synced 2025-05-13 02:15:59 +00:00
update share_link_expire_days_default
show default days after delete share link
This commit is contained in:
parent
8bcb22f2a3
commit
c547218c50
@ -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,12 +441,12 @@ 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('');
|
||||
}
|
||||
expire_days_input.val('');
|
||||
}
|
||||
|
||||
// restore 'permission'
|
||||
|
Loading…
Reference in New Issue
Block a user