summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-08-04 17:00:16 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-08-04 17:00:16 -0400
commit1ec27399a748e01b74aef6b3781e4da52214faba (patch)
treed74da7c1a8adddb7a1556539a4b795ebd92fb3ca /settings
parent002ad4ba16eb6cd0b2131f012b1a0a8b6b0b777f (diff)
downloadnextcloud-server-1ec27399a748e01b74aef6b3781e4da52214faba.tar.gz
nextcloud-server-1ec27399a748e01b74aef6b3781e4da52214faba.zip
Show delete tipsy for users
Diffstat (limited to 'settings')
-rw-r--r--settings/css/settings.css6
-rw-r--r--settings/js/users.js2
-rw-r--r--settings/templates/users.php9
3 files changed, 10 insertions, 7 deletions
diff --git a/settings/css/settings.css b/settings/css/settings.css
index e79029ddbfa..7bd7d5f7f06 100644
--- a/settings/css/settings.css
+++ b/settings/css/settings.css
@@ -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%; }
diff --git a/settings/js/users.js b/settings/js/users.js
index 43b726fbfc8..a6b1b659978 100644
--- a/settings/js/users.js
+++ b/settings/js/users.js
@@ -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');
diff --git a/settings/templates/users.php b/settings/templates/users.php
index 9b64696547f..d8200bf2022 100644
--- a/settings/templates/users.php
+++ b/settings/templates/users.php
@@ -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; ?>