This commit is contained in:
matthiasbe 2021-06-02 17:48:51 +02:00 committed by GitHub
commit 767ea6f012
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -79,15 +79,24 @@ window.addEventListener('DOMContentLoaded', function(){
value = 'no';
}
}
if ((this.id === 'shareapiExpireAfterNDays' || this.id === 'shareapiInternalExpireAfterNDays') && value === '') {
value = '7'
}
OCP.AppConfig.setValue('core', $(this).attr('name'), value);
});
$('#shareapiDefaultExpireDate').change(function() {
$("#setDefaultExpireDate").toggleClass('hidden', !this.checked);
if (this.checked) {
$('#shareapiExpireAfterNDays').trigger('change');
}
});
$('#shareapiDefaultInternalExpireDate').change(function() {
$("#setDefaultInternalExpireDate").toggleClass('hidden', !this.checked);
if (this.checked) {
$('#shareapiInternalExpireAfterNDays').trigger('change');
}
});
$('#shareapiDefaultRemoteExpireDate').change(function() {