hide default expire message if user sets expire date
This commit is contained in:
parent
b8dc85b2f6
commit
b985021082
1 changed files with 7 additions and 0 deletions
|
@ -746,6 +746,9 @@ $(document).ready(function() {
|
|||
OC.dialogs.alert(t('core', 'Error unsetting expiration date'), t('core', 'Error'));
|
||||
}
|
||||
$('#expirationDate').hide('blind');
|
||||
if (oc_appconfig.core.defaultExpireDateEnforced === 'no') {
|
||||
$('#defaultExpireMessage'). show('blind');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
@ -768,6 +771,10 @@ $(document).ready(function() {
|
|||
expirationDateField.tipsy({gravity: 'n', fade: true});
|
||||
expirationDateField.tipsy('show');
|
||||
expirationDateField.addClass('error');
|
||||
} else {
|
||||
if (oc_appconfig.core.defaultExpireDateEnforced === 'no') {
|
||||
$('#defaultExpireMessage'). hide('blind');
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue