diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-07-05 10:53:59 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-07-05 10:53:59 +0200 |
commit | 13991be5ce6e318670b84458c2cdaa6878ad63cc (patch) | |
tree | b2600df6c6019cb50f8734f50f582a80760f8287 /core/js/share.js | |
parent | 955646c4618110cd80c51f283b74848c9a013c41 (diff) | |
download | nextcloud-server-13991be5ce6e318670b84458c2cdaa6878ad63cc.tar.gz nextcloud-server-13991be5ce6e318670b84458c2cdaa6878ad63cc.zip |
no anonymous upload on files only folders
Diffstat (limited to 'core/js/share.js')
-rw-r--r-- | core/js/share.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/core/js/share.js b/core/js/share.js index 588202d2273..778a9f8e201 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -181,11 +181,13 @@ OC.Share={ html += '<div id="linkPass">'; html += '<input id="linkPassText" type="password" placeholder="'+t('core', 'Password')+'" />'; html += '</div>'; - html += '<div id="allowPublicUploadWrapper" style="display:none;">'; - html += '<input type="checkbox" value="1" name="allowPublicUpload" id="sharingDialogAllowPublicUpload"' + ((allowPublicUploadStatus) ? 'checked="checked"' : '') + ' />'; - html += '<label for="sharingDialogAllowPublicUpload">' + t('core', 'Allow Public Upload') + '</label>'; - html += '</div></div>'; - html += '<form id="emailPrivateLink" >'; + if (itemType == 'folder') { + html += '<div id="allowPublicUploadWrapper" style="display:none;">'; + html += '<input type="checkbox" value="1" name="allowPublicUpload" id="sharingDialogAllowPublicUpload"' + ((allowPublicUploadStatus) ? 'checked="checked"' : '') + ' />'; + html += '<label for="sharingDialogAllowPublicUpload">' + t('core', 'Allow Public Upload') + '</label>'; + html += '</div>'; + } + html += '</div><form id="emailPrivateLink" >'; html += '<input id="email" style="display:none; width:62%;" value="" placeholder="'+t('core', 'Email link to person')+'" type="text" />'; html += '<input id="emailButton" style="display:none;" type="submit" value="'+t('core', 'Send')+'" />'; html += '</form>'; |