Fix fetching item type from share class element, comment out the auto hider for now since it doesn't work outside of the Files app

This commit is contained in:
Michael Gapczynski 2012-06-30 21:06:04 -04:00
parent 47f46890c8
commit f456cee9d8
1 changed files with 12 additions and 12 deletions

View File

@ -184,8 +184,8 @@ OC.Share={
$(document).ready(function() {
$('.share').live('click', function() {
if ($(this).data('itemType') !== undefined && $(this).data('item') !== undefined) {
OC.Share.showDropDown($(this).data('itemType'), $(this).data('item'), $(this));
if ($(this).data('item-type') !== undefined && $(this).data('item') !== undefined) {
OC.Share.showDropDown($(this).data('item-type'), $(this).data('item'), $(this).parent().parent());
}
});
@ -232,17 +232,17 @@ $(document).ready(function() {
OC.Share.showDropDown('file', item, appendTo);
}
});
};
}
$(this).click(function(event) {
if (!($(event.target).hasClass('drop')) && $(event.target).parents().index($('#dropdown')) == -1) {
if ($('#dropdown').is(':visible')) {
OC.Share.hideDropDown(function() {
$('tr').removeClass('mouseOver');
});
}
}
});
// $(this).click(function(event) {
// if (!($(event.target).hasClass('drop')) && $(event.target).parents().index($('#dropdown')) == -1) {
// if ($('#dropdown').is(':visible')) {
// OC.Share.hideDropDown(function() {
// $('tr').removeClass('mouseOver');
// });
// }
// }
// });
$('#sharedWithList li').live('mouseenter', function(event) {
// Show permissions and unshare button