summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-06-30 21:06:04 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-06-30 21:06:04 -0400
commitf456cee9d838f07476ac4f9b478ed78e5e336b67 (patch)
tree859e05a9a2eba7da521df4c23e1c3a9758d24d60 /core
parent47f46890c8ce4b80bef8e474339f2ebda6bb8e55 (diff)
downloadnextcloud-server-f456cee9d838f07476ac4f9b478ed78e5e336b67.tar.gz
nextcloud-server-f456cee9d838f07476ac4f9b478ed78e5e336b67.zip
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
Diffstat (limited to 'core')
-rw-r--r--core/js/share.js24
1 files changed, 12 insertions, 12 deletions
diff --git a/core/js/share.js b/core/js/share.js
index 96ea3077303..bcad906262a 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -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