Use right variable name.
This commit is contained in:
parent
6941266e7b
commit
aefa52018d
|
@ -253,9 +253,9 @@ $(document).ready(function() {
|
|||
|
||||
$('a.share').live('click', function(event) {
|
||||
event.stopPropagation();
|
||||
if ($(this).data('item-type') !== undefined && $(this).data('item-source') !== undefined) {
|
||||
if ($(this).data('item-type') !== undefined && $(this).data('item') !== undefined) {
|
||||
var itemType = $(this).data('item-type');
|
||||
var itemSource = $(this).data('item-source');
|
||||
var itemSource = $(this).data('item');
|
||||
var appendTo = $(this).parent().parent();
|
||||
var privateLink = false;
|
||||
var possiblePermissions = $(this).data('possible-permissions');
|
||||
|
@ -263,7 +263,7 @@ $(document).ready(function() {
|
|||
privateLink = true;
|
||||
}
|
||||
if (OC.Share.droppedDown) {
|
||||
if (item != $('#dropdown').data('item')) {
|
||||
if (itemSource != $('#dropdown').data('item')) {
|
||||
OC.Share.hideDropDown(function () {
|
||||
OC.Share.showDropDown(itemType, itemSource, appendTo, privateLink, possiblePermissions);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue