summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-08-28 15:10:06 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-08-29 11:54:49 -0400
commit9fcb916057934b81a44952bf67bc0118f609c570 (patch)
treecc7e8128ab6639b382b053a373b2d50d3439de04 /core
parent9338d093f9bbcb8b25c088d8777f5803964570c3 (diff)
downloadnextcloud-server-9fcb916057934b81a44952bf67bc0118f609c570.tar.gz
nextcloud-server-9fcb916057934b81a44952bf67bc0118f609c570.zip
Fix toggling of password protection in sharing dropdown
Diffstat (limited to 'core')
-rw-r--r--core/css/share.css4
-rw-r--r--core/js/share.js11
2 files changed, 9 insertions, 6 deletions
diff --git a/core/css/share.css b/core/css/share.css
index a8ffc8df42e..abaeb07dd8a 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 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) {
font-weight: bold } /* Keyword.Namespace */ .highlight .kp { color: #008800 } /* Keyword.Pseudo */ .highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ .highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */ .highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: ownCloud Core 5.0.0\n"
"Report-Msgid-Bugs-To: translations@owncloud.org\n"
"POT-Creation-Date: 2013-09-27 00:01-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"

#: ajax/adminrecovery.php:29
msgid "Recovery key successfully enabled"
msgstr ""

#: ajax/adminrecovery.php:34
msgid "Could not enable recovery key. Please check your recovery key password!"
msgstr ""

#: ajax/adminrecovery.php:48
msgid "Recovery key successfully disabled"
msgstr ""

#: ajax/adminrecovery.php:53
msgid ""
"Could not disable recovery key. Please check your recovery key password!"
msgstr ""

#: ajax/changeRecoveryPassword.php:49
msgid "Password successfully changed."
msgstr ""

#: ajax/changeRecoveryPassword.php:51
msgid "Could not change the password. Maybe the old password was not correct."
msgstr ""

#: ajax/updatePrivateKeyPassword.php:51
msgid "Private key password successfully updated."
msgstr ""

#: ajax/updatePrivateKeyPassword.php:53
msgid ""
"Could not update the private key password. Maybe the old password was not "
"correct."
msgstr ""

#: files/error.php:7
msgid ""
"Your private key is not valid! Likely your password was changed outside the "
"ownCloud system (e.g. your corporate directory). You can update your private "
"key password in your personal settings to recover access to your encrypted "
"files."
msgstr ""

#: hooks/hooks.php:53
msgid "Missing requirements."
msgstr ""

#: hooks/hooks.php:54
msgid ""
"Please make sure that PHP 5.3.3 or newer is installed and that OpenSSL "
"together with the PHP extension is enabled and configured properly. For now, "
"the encryption app has been disabled."
msgstr ""

#: hooks/hooks.php:255
msgid "Following users are not set up for encryption:"
msgstr ""

#: js/settings-admin.js:11
msgid "Saving..."
msgstr ""

#: templates/invalid_private_key.php:5
msgid ""
"Your private key is not valid! Maybe the your password was changed from "
"outside."
msgstr ""

#: templates/invalid_private_key.php:7
msgid "You can unlock your private key in your "
msgstr ""

#: templates/invalid_private_key.php:7
msgid "personal settings"
msgstr ""

#: templates/settings-admin.php:5 templates/settings-personal.php:4
msgid "Encryption"
msgstr ""

#: templates/settings-admin.php:10
msgid ""
"Enable recovery key (allow to recover users files in case of password loss):"
msgstr ""

#: templates/settings-admin.php:14
msgid "Recovery key password"
msgstr ""

#: templates/settings-admin.php:21 templates/settings-personal.php:54
msgid "Enabled"
msgstr ""

#: templates/settings-admin.php:29 templates/settings-personal.php:62
msgid "Disabled"
msgstr ""

#: templates/settings-admin.php:34
msgid "Change recovery key password:"
msgstr ""

#: templates/settings-admin.php:41
msgid "Old Recovery key password"
msgstr ""

#: templates/settings-admin.php:48
msgid "New Recovery key password"
msgstr ""

#: templates/settings-admin.php:53
msgid "Change Password"
msgstr ""

#: templates/settings-personal.php:11
msgid "Your private key password no longer match your log-in password:"
msgstr ""

#: templates/settings-personal.php:14
msgid "Set your old private key password to your current log-in password."
msgstr ""

#: templates/settings-personal.php:16
msgid ""
" If you don't remember your old password you can ask your administrator to "
"recover your files."
msgstr ""

#: templates/settings-personal.php:24
msgid "Old log-in password"
msgstr ""

#: templates/settings-personal.php:30
msgid "Current log-in password"
msgstr ""

#: templates/settings-personal.php:35
msgid "Update Private Key Password"
msgstr ""

#: templates/settings-personal.php:45
msgid "Enable password recovery:"
msgstr ""

#: templates/settings-personal.php:47
msgid ""
"Enabling this option will allow you to reobtain access to your encrypted "
"files in case of password loss"
msgstr ""

#: templates/settings-personal.php:63
msgid "File recovery settings updated"
msgstr ""

#: templates/settings-personal.php:64
msgid "Could not update file recovery"
msgstr ""