summaryrefslogtreecommitdiffstats
path: root/files/js
diff options
context:
space:
mode:
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);
+ });
+});