summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-09-01 13:52:12 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-09-01 13:52:12 -0400
commit5a9a795cd5b69d9a6acd2b82f77c9437c362d71a (patch)
tree014b413044a44dd4e7aa7bc15bccb3cb251b3ffc /core/js
parent29d1e8087d3f94a78fc23e1fdd44c139349625b0 (diff)
downloadnextcloud-server-5a9a795cd5b69d9a6acd2b82f77c9437c362d71a.tar.gz
nextcloud-server-5a9a795cd5b69d9a6acd2b82f77c9437c362d71a.zip
Fix check in Javascript for password protected link
Diffstat (limited to 'core/js')
-rw-r--r--core/js/share.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/share.js b/core/js/share.js
index 642c2e1fe4f..e97302b0d5a 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -277,7 +277,7 @@ OC.Share={
$('#linkText').val(link);
$('#linkText').show('blind');
$('#showPassword').show();
- if (password.length > 0) {
+ if (password != null) {
$('#linkPass').show('blind');
$('#linkPassText').attr('placeholder', 'Password protected');
}