From 6c4d075bd656497e793c230818c53fa085cbbbf9 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Fri, 12 Aug 2011 11:26:13 +0200 Subject: added jquery-tipsy for nice title tooltips --- files/css/files.css | 2 +- files/js/files.js | 4 ++++ files/templates/index.php | 9 ++++----- 3 files changed, 9 insertions(+), 6 deletions(-) (limited to 'files') diff --git a/files/css/files.css b/files/css/files.css index c856d3a6bdd..2ff985cfc3b 100644 --- a/files/css/files.css +++ b/files/css/files.css @@ -39,7 +39,7 @@ table th .name { float:left; margin-left:.5em; } table th.multiselect { background:#ddd; color:#000; font-weight:bold; } table th, table td { border-bottom:1px solid #ddd; text-align:left; font-weight:normal; } table td { border-bottom:1px solid #eee; font-style:normal; background-position:1em .5em; background-repeat:no-repeat; } -table th#headerSize, table td.filesize { width:5em; padding:0 1em; text-align:right; } +table th#headerSize, table td.filesize { width:3em; padding:0 1em; text-align:right; } table th#headerDate, table td.date { width:11em; padding:0 .1em 0 1em; text-align:left; } table td.selection, table th.selection, table td.fileaction { width:2em; text-align:center; } table td.filename a.name { display:block; height:1.5em; vertical-align:middle; margin-left:3em; } diff --git a/files/js/files.js b/files/js/files.js index 6af021c35bc..8fd4b95ec7b 100644 --- a/files/js/files.js +++ b/files/js/files.js @@ -17,6 +17,10 @@ $(document).ready(function() { $('#file_upload_start').trigger('click'); return false; }); + + $('#file_upload_button_wrapper').tipsy({gravity:'e'}); + $('td.filesize').tipsy({gravity:'se', live:true}); + $('td .modified').tipsy({gravity:'s', live:true}); // Sets the file-action buttons behaviour : $('tr').live('mouseenter',function(event) { diff --git a/files/templates/index.php b/files/templates/index.php index a2cf037c756..7ebb6e46949 100644 --- a/files/templates/index.php +++ b/files/templates/index.php @@ -6,10 +6,9 @@
- + - +
@@ -33,8 +32,8 @@ - t( 'Size MB' ); ?> - t( 'Modified' ); ?><?php echo $l->t('Delete')?> + t( 'Size' ); ?> + t( 'Modified' ); ?><?php echo $l->t('Delete')?> -- cgit v1.2.3