From b090a32d233631305f050b7235eb4bedc91417ad Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Fri, 24 Apr 2015 16:14:08 +0200 Subject: Reset share dialog values so we start out clean * Unit test --- core/js/share.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'core/js/share.js') 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(); -- cgit v1.2.3