diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-08-28 15:10:06 -0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-08-29 11:54:49 -0400 |
commit | 9fcb916057934b81a44952bf67bc0118f609c570 (patch) | |
tree | cc7e8128ab6639b382b053a373b2d50d3439de04 /core/js | |
parent | 9338d093f9bbcb8b25c088d8777f5803964570c3 (diff) | |
download | nextcloud-server-9fcb916057934b81a44952bf67bc0118f609c570.tar.gz nextcloud-server-9fcb916057934b81a44952bf67bc0118f609c570.zip |
Fix toggling of password protection in sharing dropdown
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/share.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/core/js/share.js b/core/js/share.js index 4c164f65b24..cc862b1c5f5 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -130,7 +130,7 @@ OC.Share={ html += '<br />'; } if (possiblePermissions & OC.Share.PERMISSION_SHARE) { - html += '<input id="shareWith" type="text" placeholder="Share with" style="width:90%;"/>'; + html += '<input id="shareWith" type="text" placeholder="Share with" />'; html += '<ul id="shareWithList">'; html += '</ul>'; if (link) { @@ -139,8 +139,10 @@ OC.Share={ // TODO Change to lock/unlock icon? html += '<a href="#" id="showPassword" style="display:none;"><img class="svg" alt="Password protect" src="'+OC.imagePath('core', 'actions/triangle-n')+'"/></a>'; html += '<br />'; - html += '<input id="linkText" style="display:none; width:90%;" readonly="readonly" />'; - html += '<input id="linkPassText" type="password" placeholder="Password" style="display:none; width:90%;" />'; + html += '<input id="linkText" type="text" readonly="readonly" />'; + html += '<div id="linkPass">'; + html += '<input id="linkPassText" type="password" placeholder="Password" />'; + html += '</div>' html += '</div>'; } html += '</div>'; @@ -408,8 +410,7 @@ $(document).ready(function() { }); $('#showPassword').live('click', function() { - $('#linkText').after('<br />'); - $('#linkPassText').toggle('blind'); + $('#linkPass').toggle('blind'); }); $('#linkPassText').live('keyup', function(event) { |