1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 14:42:10 +00:00

fix bug of folder share link

This commit is contained in:
lian
2018-09-21 15:21:15 +08:00
parent 07d243d927
commit 577e814ae7
2 changed files with 5 additions and 5 deletions

View File

@@ -258,8 +258,8 @@ define([
dataType: 'json',
success: function(data) {
// show 'can preview/edit' perm option for download link or not
if (data.can_preview) {
_this.$('#file-share-link-preview-only-radio').removeClass('hide');
if (!data.can_preview) {
_this.$('#share-link-preview-only-radio').addClass('hide');
}
var file_ext = '';
@@ -268,7 +268,7 @@ define([
.toLowerCase();
}
if ((file_ext == 'docx' || file_ext == 'xlsx' || file_ext == 'pptx') && data.can_edit) {
_this.$('#file-share-link-edit-download-radio').removeClass('hide');
_this.$('#share-link-edit-download-radio').removeClass('hide');
}
}
});