summaryrefslogtreecommitdiffstats
path: root/files/js
diff options
context:
space:
mode:
authorJakob Sack <kde@jakobsack.de>2011-03-02 23:06:23 +0100
committerJakob Sack <kde@jakobsack.de>2011-03-02 23:06:23 +0100
commit61ffa182ee90e1a08538f438fb5528e32b3cf70a (patch)
treea45392a2a35a3504e2b7c26195a94ec042e7255c /files/js
parente5ea0a3daa307d6df6c864d13adcf733a286213e (diff)
downloadnextcloud-server-61ffa182ee90e1a08538f438fb5528e32b3cf70a.tar.gz
nextcloud-server-61ffa182ee90e1a08538f438fb5528e32b3cf70a.zip
Application "files" is able to list the files again, start of splitting css files
Diffstat (limited to 'files/js')
-rw-r--r--files/js/files.js39
1 files changed, 39 insertions, 0 deletions
diff --git a/files/js/files.js b/files/js/files.js
new file mode 100644
index 00000000000..9ab573ee92b
--- /dev/null
+++ b/files/js/files.js
@@ -0,0 +1,39 @@
+$(document).ready(function() {
+ // Sets browser table behaviour :
+ $('.browser tr').hover(
+ function() {
+ $(this).addClass('mouseOver');
+ },
+ function() {
+ $(this).removeClass('mouseOver');
+ }
+ );
+
+ // Sets logs table behaviour :
+ $('.logs tr').hover(
+ function() {
+ $(this).addClass('mouseOver');
+ },
+ function() {
+ $(this).removeClass('mouseOver');
+ }
+ );
+
+ // Sets the file-action buttons behaviour :
+ $('td.fileaction a').click(function() {
+ $(this).parent().append($('#file_menu'));
+ $('#file_menu').slideToggle(250);
+ return false;
+ });
+
+ // Sets the select_all checkbox behaviour :
+ $('#select_all').click(function() {
+
+ if($(this).attr('checked'))
+ // Check all
+ $('.browser input:checkbox').attr('checked', true);
+ else
+ // Uncheck all
+ $('.browser input:checkbox').attr('checked', false);
+ });
+});