mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-20 21:33:54 -07:00
Show default avatar after delete, instead of hide (#628)
This commit is contained in:
parent
edc57bfd2a
commit
9689efd6f4
2 changed files with 5 additions and 7 deletions
|
@ -34,11 +34,8 @@ switch ($mode) {
|
|||
$this->response['new_value'] = $value;
|
||||
break;
|
||||
|
||||
case 'group_type':
|
||||
$this->response['new_value'] = $value;
|
||||
break;
|
||||
|
||||
case 'release_group':
|
||||
case 'group_type':
|
||||
$this->response['new_value'] = $value;
|
||||
break;
|
||||
|
||||
|
@ -46,7 +43,7 @@ switch ($mode) {
|
|||
delete_avatar(GROUP_AVATAR_MASK . $group_id, $group_info['avatar_ext_id']);
|
||||
$value = 0;
|
||||
$mode = 'avatar_ext_id';
|
||||
$this->response['act'] = $value;
|
||||
$this->response['remove_avatar'] = get_avatar(GROUP_AVATAR_MASK . $group_id, $value);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
@ -7,8 +7,9 @@ function manage_group(mode, value) {
|
|||
value : value
|
||||
});
|
||||
ajax.callback.manage_group = function(data) {
|
||||
if (data.act == 0) $('div#avatar').hide(100);
|
||||
console.log(data);
|
||||
if(data.remove_avatar) {
|
||||
$('div#avatar').html(data.remove_avatar);
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue