summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2015-09-14 01:26:38 +0200
committerVincent Petry <pvince81@owncloud.com>2015-09-16 07:23:28 +0200
commitd4bbc062be79f48633f047e142800f37efa04e1f (patch)
treefc3fbe3d8e7e73e3c7463fc003000c17d4095dff /core/js
parenta5b0ea031de3036fc75c3b1d6b3c030a824c1736 (diff)
downloadnextcloud-server-d4bbc062be79f48633f047e142800f37efa04e1f.tar.gz
nextcloud-server-d4bbc062be79f48633f047e142800f37efa04e1f.zip
cleanup
Diffstat (limited to 'core/js')
-rw-r--r--core/js/share.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/core/js/share.js b/core/js/share.js
index 85b920a6913..7c87fb88cfd 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -846,30 +846,6 @@ $(document).ready(function() {
minDate : minDate
});
}
- $(document).on('click', 'a.share', function(event) {
- event.stopPropagation();
- if ($(this).data('item-type') !== undefined && $(this).data('item') !== undefined) {
- var itemType = $(this).data('item-type');
- var itemSource = $(this).data('item');
- var appendTo = $(this).parent().parent();
- var link = false;
- var possiblePermissions = $(this).data('possible-permissions');
- if ($(this).data('link') !== undefined && $(this).data('link') == true) {
- link = true;
- }
- if (OC.Share.droppedDown) {
- if (itemSource != $('#dropdown').data('item')) {
- OC.Share.hideDropDown(function () {
- OC.Share.showDropDown(itemType, itemSource, appendTo, link, possiblePermissions);
- });
- } else {
- OC.Share.hideDropDown();
- }
- } else {
- OC.Share.showDropDown(itemType, itemSource, appendTo, link, possiblePermissions);
- }
- }
- });
$(this).click(function(event) {
var target = $(event.target);