diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2015-04-24 16:14:08 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2015-05-18 10:08:09 +0200 |
commit | b090a32d233631305f050b7235eb4bedc91417ad (patch) | |
tree | da9393920b9d11bbd26ca020b78e1d9fa840544b /core/js/share.js | |
parent | 73a3086945b41afa39debd89481c021934dedb67 (diff) | |
download | nextcloud-server-b090a32d233631305f050b7235eb4bedc91417ad.tar.gz nextcloud-server-b090a32d233631305f050b7235eb4bedc91417ad.zip |
Reset share dialog values so we start out clean
* Unit test
Diffstat (limited to 'core/js/share.js')
-rw-r--r-- | core/js/share.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/js/share.js b/core/js/share.js index 6723b829ca5..aa907900ea1 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -986,6 +986,11 @@ $(document).ready(function() { $('#linkPassText').attr('placeholder', t('core', 'Choose a password for the public link')); // Reset link $('#linkText').val(''); + $('#showPassword').prop('checked', false); + $('#linkPass').hide(); + $('#sharingDialogAllowPublicUpload').prop('checked', false); + $('#expirationCheckbox').prop('checked', false); + $('#expirationDate').hide(); var expireDateString = ''; if (oc_appconfig.core.defaultExpireDateEnabled) { var date = new Date().getTime(); |