]> source.dussan.org Git - nextcloud-server.git/commitdiff
Reset sharedialog values
authorRoeland Jago Douma <roeland@famdouma.nl>
Tue, 14 Apr 2015 13:13:46 +0000 (15:13 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Fri, 17 Apr 2015 07:38:09 +0000 (09:38 +0200)
core/js/share.js

index 2eae6fa49a25425365eb2411c58115558ea64888..45c8889c950fc70d288e97763ed6978e64b3f065 100644 (file)
@@ -982,6 +982,10 @@ $(document).ready(function() {
                }
 
                if (this.checked) {
+                       // Reset password placeholder
+                       $('#linkPassText').attr('placeholder', t('core', 'Choose a password for the public link'));
+                       // Reset link
+                       $('#linkText').val('');
                        var expireDateString = '';
                        if (oc_appconfig.core.defaultExpireDateEnabled) {
                                var date = new Date().getTime();