Show delete tipsy for users

This commit is contained in:
Michael Gapczynski 2012-08-04 17:00:16 -04:00
parent 002ad4ba16
commit 1ec27399a7
3 changed files with 10 additions and 7 deletions

View File

@ -22,14 +22,14 @@ form { display:inline; }
table:not(.nostyle) th { height:2em; color:#999; }
table:not(.nostyle) th, table:not(.nostyle) td { border-bottom:1px solid #ddd; padding:0 .5em; padding-left:.8em; text-align:left; font-weight:normal; }
td.name, td.password { padding-left:.8em; }
td.password>img, td.remove>img, td.quota>img { visibility:hidden; }
td.password>img, td.remove>a, td.quota>img { visibility:hidden; }
td.password, td.quota { width:12em; cursor:pointer; }
td.password>span, td.quota>span { margin-right: 1.2em; color: #C7C7C7; }
td.remove { width:1em; padding-right:1em; }
tr:hover>td.password>span { margin:0; cursor:pointer; }
tr:hover>td.remove>img, tr:hover>td.password>img, tr:hover>td.quota>img { visibility:visible; cursor:pointer; }
tr:hover>td.remove>img { float:right; }
tr:hover>td.remove>a, tr:hover>td.password>img, tr:hover>td.quota>img { visibility:visible; cursor:pointer; }
tr:hover>td.remove>a { float:right; }
li.selected { background-color:#ddd; }
#content>table:not(.nostyle) { margin-top:3em; }
table:not(.nostyle) { width:100%; }

View File

@ -170,7 +170,7 @@ $(document).ready(function(){
applyMultiplySelect($(element));
});
$('td.remove>img').live('click',function(event){
$('td.remove>a').live('click',function(event){
var uid = $(this).parent().parent().data('uid');

View File

@ -141,9 +141,12 @@ var isadmin = <?php echo $_['isadmin']?'true':'false'; ?>;
</select> <input class='quota-other'></input>
</div>
</td>
<td class="remove"><?php if($user['name']!=OC_User::getUser()):?> <img
alt="Delete" title="<?php echo $l->t('Delete')?>" class="svg action"
src="<?php echo image_path('core','actions/delete.svg') ?>" /> <?php endif;?>
<td class="remove">
<?php if($user['name']!=OC_User::getUser()):?>
<a href="#" class="action delete" original-title="<?php echo $l->t('Delete')?>">
<img src="<?php echo image_path('core','actions/delete.svg') ?>" />
</a>
<?php endif;?>
</td>
</tr>
<?php endforeach; ?>