Use right variable name.

This commit is contained in:
Thomas Tanghus 2012-08-23 05:00:47 +02:00
parent 6941266e7b
commit aefa52018d
1 changed files with 10 additions and 10 deletions

View File

@ -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);
});