Skip to content
Snippets Groups Projects
Commit 5c5955b3 authored by Michael Gapczynski's avatar Michael Gapczynski
Browse files

Disable link sharing for folders temporarily - next release

parent 6c17a4cb
No related branches found
No related tags found
No related merge requests found
......@@ -39,8 +39,10 @@ $(document).ready(function() {
var tr = $('tr').filterAttr('data-file', filename);
if ($(tr).data('type') == 'dir') {
var itemType = 'folder';
var link = false;
} else {
var itemType = 'file';
var link = true;
}
var possiblePermissions = $(tr).data('permissions');
var appendTo = $(tr).find('td.filename');
......@@ -49,14 +51,14 @@ $(document).ready(function() {
if (item != $('#dropdown').data('item')) {
OC.Share.hideDropDown(function () {
$(tr).addClass('mouseOver');
OC.Share.showDropDown(itemType, $(tr).data('id'), appendTo, true, possiblePermissions);
OC.Share.showDropDown(itemType, $(tr).data('id'), appendTo, link, possiblePermissions);
});
} else {
OC.Share.hideDropDown();
}
} else {
$(tr).addClass('mouseOver');
OC.Share.showDropDown(itemType, $(tr).data('id'), appendTo, true, possiblePermissions);
OC.Share.showDropDown(itemType, $(tr).data('id'), appendTo, link, possiblePermissions);
}
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment