diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-09-30 18:24:46 +0300 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-09-30 18:24:46 +0300 |
commit | bc81b8536be5f0f904dbcfb0f51f77dd5e7223b0 (patch) | |
tree | 6b2b9d8ed83ad04eb0c8e59456ea3e64b2442529 | |
parent | cf6a9f84ad8e5152b8856f7634e5665b6b72d65a (diff) |
dont make the password protect checkbox visible, just the label is enough
-rw-r--r-- | js/vendor/owncloud/share.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/js/vendor/owncloud/share.js b/js/vendor/owncloud/share.js index 560f0f6f..7c88b242 100644 --- a/js/vendor/owncloud/share.js +++ b/js/vendor/owncloud/share.js @@ -361,7 +361,7 @@ html += '<label for="linkText" class="hidden-visually">'+t('core', 'Link')+'</label>'; html += '<input id="linkText" type="text" readonly="readonly" />'; - html += '<input type="checkbox" class="checkbox checkbox--right" name="showPassword" id="showPassword" value="1" style="display:none;" /><label for="showPassword" style="display:none;">'+t('core', 'Password protect')+'</label>'; + html += '<input type="checkbox" class="checkbox checkbox--right" name="showPassword" id="showPassword" value="1" /><label for="showPassword" style="display:none;">'+t('core', 'Password protect')+'</label>'; html += '<div id="linkPass">'; html += '<label for="linkPassText" class="hidden-visually">'+t('core', 'Password')+'</label>'; html += '<input id="linkPassText" type="password" placeholder="'+t('core', 'Choose a password for the public link')+'" />'; @@ -716,7 +716,6 @@ $('#linkText').slideDown(OC.menuSpeed); $('#linkText').css('display','block'); if (oc_appconfig.core.enforcePasswordForPublicLink === false || password === null) { - $('#showPassword').show(); $('#showPassword+label').show(); } if (password != null) { @@ -732,7 +731,6 @@ hideLink:function() { $('#linkText').slideUp(OC.menuSpeed); $('#defaultExpireMessage').hide(); - $('#showPassword').hide(); $('#showPassword+label').hide(); $('#linkPass').slideUp(OC.menuSpeed); $('#emailPrivateLink #email').hide(); |