From d4bbc062be79f48633f047e142800f37efa04e1f Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Mon, 14 Sep 2015 01:26:38 +0200 Subject: cleanup --- core/js/share.js | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'core/js/share.js') 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); -- cgit v1.2.3