diff options
author | Jan-Christoph Borchardt <JanCBorchardt@fsfe.org> | 2011-08-12 11:26:13 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <JanCBorchardt@fsfe.org> | 2011-08-12 11:26:13 +0200 |
commit | 6c4d075bd656497e793c230818c53fa085cbbbf9 (patch) | |
tree | 55aff5d2c17074056998537eb441227ff64d9cd5 /files | |
parent | 3747ba928ff573a8c50943ac8748ec2c24cbba09 (diff) | |
download | nextcloud-server-6c4d075bd656497e793c230818c53fa085cbbbf9.tar.gz nextcloud-server-6c4d075bd656497e793c230818c53fa085cbbbf9.zip |
added jquery-tipsy for nice title tooltips
Diffstat (limited to 'files')
-rw-r--r-- | files/css/files.css | 2 | ||||
-rw-r--r-- | files/js/files.js | 4 | ||||
-rw-r--r-- | files/templates/index.php | 9 |
3 files changed, 9 insertions, 6 deletions
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 @@ <input type="hidden" class="max_human_file_size" value="(max <?php echo $_['uploadMaxHumanFilesize']; ?>)"> <input type="hidden" name="dir" value="<?php echo $_['dir'] ?>" id="dir"> <div class="file_upload_wrapper" class="svg"> - <input type="submit" class="file_upload_filename" value="<?php echo $l->t('Upload'); - if($_['uploadMaxFilesize']<(10000000000)){echo ' (max. '.$_['uploadMaxHumanFilesize'].')';}?>"/> + <input type="submit" class="file_upload_filename" value="<?php echo $l->t('Upload'); ?>"/> <input id="file_upload_start" class="file_upload_start" type="file" name='files[]'/> - <a href="#" id="file_upload_button_wrapper" onclick="return false;"></a> + <a href="#" id="file_upload_button_wrapper" onclick="return false;" title="<?php echo 'max. '.$_['uploadMaxHumanFilesize'] ?>"></a> </div> <iframe name="file_upload_target_1" class='file_upload_target' src=""></iframe> </form> @@ -33,8 +32,8 @@ <!--<a href="" title="" class="share">Share</a>--> </span> </th> - <th id='headerSize'><?php echo $l->t( 'Size MB' ); ?></th> - <th id='headerDate'><span id="modified"><?php echo $l->t( 'Modified' ); ?></span><span class='selectedActions'><a href="" title="Delete" class="delete"><img class='svg' alt="<?php echo $l->t('Delete')?>" src="../core/img/actions/delete.svg" /></a></span></th> + <th id="headerSize"><?php echo $l->t( 'Size' ); ?></th> + <th id="headerDate"><span id="modified"><?php echo $l->t( 'Modified' ); ?></span><span class="selectedActions"><a href="" title="Delete" class="delete"><img class="svg" alt="<?php echo $l->t('Delete')?>" src="../core/img/actions/delete.svg" /></a></span></th> </tr> </thead> <tbody id="fileList"> |