]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix check in Javascript for password protected link
authorMichael Gapczynski <mtgap@owncloud.com>
Sat, 1 Sep 2012 17:52:12 +0000 (13:52 -0400)
committerMichael Gapczynski <mtgap@owncloud.com>
Sat, 1 Sep 2012 17:52:12 +0000 (13:52 -0400)
core/js/share.js

index 642c2e1fe4fd07eee6fa795c94a0caa9e1a463bf..e97302b0d5a0d7754b911e1d0f307e398f4c5905 100644 (file)
@@ -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');
                }