aboutsummaryrefslogtreecommitdiffstats
path: root/files/js/files.js
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-07-22 00:18:41 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-07-22 00:18:41 +0200
commitd9a79c0f7eade4915b236c1581ed30714ecab3ff (patch)
tree8525427c56e5edf0c163b2947cc0fd26993ddf7f /files/js/files.js
parentaa335f57d627e42b14e350f2bdf43112f1f0f2ef (diff)
downloadnextcloud-server-d9a79c0f7eade4915b236c1581ed30714ecab3ff.tar.gz
nextcloud-server-d9a79c0f7eade4915b236c1581ed30714ecab3ff.zip
show fileactions inline on hover
Diffstat (limited to 'files/js/files.js')
-rw-r--r--files/js/files.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/files/js/files.js b/files/js/files.js
index b0970233739..f1c00650d0a 100644
--- a/files/js/files.js
+++ b/files/js/files.js
@@ -31,11 +31,13 @@ $(document).ready(function() {
});
// Sets the file-action buttons behaviour :
- $('td.fileaction a').live('click',function(event) {
- event.preventDefault();
- FileActions.display($(this).parent());
+ $('tr').live('mouseenter',function(event) {
+ FileActions.display($(this).children('td.filename'));
});
-
+ $('tr').live('mouseleave',function(event) {
+ FileActions.hide();
+ });
+
// Sets the file link behaviour :
$('td.filename a').live('click',function(event) {
event.preventDefault();