Minor improvements (#715)

This commit is contained in:
Roman Kelesidis 2023-05-24 15:34:22 +07:00 committed by GitHub
commit 383ab0d356
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 109 additions and 104 deletions

View file

@ -15,5 +15,5 @@ indent_size = 2
[*.{diff,md}]
trim_trailing_whitespace = false
[*.php]
[*.{php,tpl}]
indent_size = 4

View file

@ -4,7 +4,6 @@
<br/>
<form method="post" action="{S_USER_ACTION}" onSubmit="return checkForm(this);">
<table class="forumline">
<tr>
<th colspan="2">{L_COMPOSE}</th>
@ -41,11 +40,11 @@
</td>
</tr>
<tr>
<td class="catBottom" colspan="2"><input type="submit" value="{L_SEND_EMAIL}" name="submit" class="mainoption"/>
<td class="catBottom" colspan="2"><input type="submit" value="{L_SEND_EMAIL}" name="submit"
class="mainoption"/>
</td>
</tr>
</table>
</form>
<script type="text/javascript">

View file

@ -1,17 +1,17 @@
<script type="text/javascript">
function manage_group(mode, value) {
function manage_group(mode, value) {
ajax.exec({
action : 'manage_group',
mode : mode,
group_id : {GROUP_ID},
value : value
action: 'manage_group',
mode: mode,
group_id: {GROUP_ID},
value: value
});
ajax.callback.manage_group = function(data) {
if(data.remove_avatar) {
ajax.callback.manage_group = function (data) {
if (data.remove_avatar) {
$('div#avatar').html(data.remove_avatar);
}
}
}
}
</script>
<h1 class="pagetitle">{PAGE_TITLE}<!-- IF GROUP_NAME --> :: {GROUP_NAME}<!-- ENDIF --></h1>

View file

@ -222,7 +222,7 @@ ajax.callback.gen_passkey = function(data){
<!-- ENDIF -->
</p>
<!-- IF BIRTHDAY_ICON --><div class="mrg_8">{BIRTHDAY_ICON}</div><!-- ENDIF -->
<h4 class="cat border bw_TB" id="username">{L_CONTACT} <span class="editable bold">{USERNAME}</span></h4>
<h4 class="cat border bw_TB">{L_CONTACT}&nbsp;{USERNAME}</span></h4>
<div class="spacer_4"></div>
@ -293,6 +293,12 @@ ajax.callback.gen_passkey = function(data){
<!-- ENDIF -->
<table class="user_details borderless w100">
<tr>
<th>{L_USERNAME}:</th>
<td id="username">
<span class="editable bold">{USERNAME}</span>
</td>
</tr>
<!-- IF SHOW_ROLE -->
<tr>
<th>{L_ROLE}</th>