From 9fcb916057934b81a44952bf67bc0118f609c570 Mon Sep 17 00:00:00 2001 From: Michael Gapczynski Date: Tue, 28 Aug 2012 15:10:06 -0400 Subject: [PATCH] Fix toggling of password protection in sharing dropdown --- core/css/share.css | 4 +++- core/js/share.js | 11 ++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/core/css/share.css b/core/css/share.css index a8ffc8df42..abaeb07dd8 100644 --- a/core/css/share.css +++ b/core/css/share.css @@ -15,4 +15,6 @@ a.showCruds { display:inline; opacity:.5; } a.showCruds:hover { opacity:1; } a.unshare { float:right; display:inline; padding:.3em 0 0 .3em !important; opacity:.5; } a.unshare:hover { opacity:1; } -#link { border-top:1px solid #ddd; padding-top:0.5em; } \ No newline at end of file +#link { border-top:1px solid #ddd; padding-top:0.5em; } +input[type="text"], input[type="password"] { width:90%; } +#linkText, #linkPass { display:none; } diff --git a/core/js/share.js b/core/js/share.js index 4c164f65b2..cc862b1c5f 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -130,7 +130,7 @@ OC.Share={ html += '
'; } if (possiblePermissions & OC.Share.PERMISSION_SHARE) { - html += ''; + html += ''; html += ''; if (link) { @@ -139,8 +139,10 @@ OC.Share={ // TODO Change to lock/unlock icon? html += ''; html += '
'; - html += ''; - html += ''; + html += ''; + html += '
'; + html += ''; + html += '
' html += ''; } html += ''; @@ -408,8 +410,7 @@ $(document).ready(function() { }); $('#showPassword').live('click', function() { - $('#linkText').after('
'); - $('#linkPassText').toggle('blind'); + $('#linkPass').toggle('blind'); }); $('#linkPassText').live('keyup', function(event) {