Minor improvements (#974)

This commit is contained in:
Roman Kelesidis 2023-10-14 21:44:32 +07:00 committed by GitHub
commit 10468263cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 50 additions and 47 deletions

View file

@ -22,7 +22,7 @@
</tr> </tr>
<tr> <tr>
<td>{L_GROUP_MODERATOR}:</td> <td>{L_GROUP_MODERATOR}:</td>
<td><input class="post" type="text" class="post" name="username" maxlength="50" size="20" value="{GROUP_MODERATOR}" /> &nbsp; <input type="submit" name="usersubmit" value="{L_FIND_USERNAME}" class="liteoption" onClick="window.open('{U_SEARCH_USER}', '_bbsearch', 'HEIGHT=250,resizable=yes,WIDTH=400');return false;" /></td> <td><input class="post" type="text" name="username" maxlength="50" size="20" value="{GROUP_MODERATOR}" /> &nbsp; <input type="submit" name="usersubmit" value="{L_FIND_USERNAME}" class="liteoption" onClick="window.open('{U_SEARCH_USER}', '_bbsearch', 'HEIGHT=250,resizable=yes,WIDTH=400');return false;" /></td>
</tr> </tr>
<tr> <tr>
<td>{L_GROUP_STATUS}:</td> <td>{L_GROUP_STATUS}:</td>

View file

@ -235,8 +235,7 @@
</script> </script>
<!-- IF TOR_CONTROLS --> <!-- IF TOR_CONTROLS -->
<script type="text/javascript"> <script type="text/javascript">
function change_torrents() function change_torrents() {
{
ajax.exec({ ajax.exec({
action: 'change_torrent', action: 'change_torrent',
attach_id: {postrow.attach.tor_reged.ATTACH_ID}, attach_id: {postrow.attach.tor_reged.ATTACH_ID},
@ -244,7 +243,8 @@
}); });
} }
</script> </script>
<select name="tor_action" id="tor-select-{postrow.attach.tor_reged.ATTACH_ID}" onchange="$('#tor-confirm-{postrow.attach.tor_reged.ATTACH_ID}').attr('checked', false); $('#tor-submit-{postrow.attach.tor_reged.ATTACH_ID}').attr('disabled', true)"> <select name="tor_action" id="tor-select-{postrow.attach.tor_reged.ATTACH_ID}"
onchange="$('#tor-confirm-{postrow.attach.tor_reged.ATTACH_ID}').attr('checked', false); $('#tor-submit-{postrow.attach.tor_reged.ATTACH_ID}').attr('disabled', true);">
<option value="" selected class="select-action">&raquo; {L_SELECT_ACTION}</option> <option value="" selected class="select-action">&raquo; {L_SELECT_ACTION}</option>
<option value="del_torrent">{L_DELETE_TORRENT}</option> <option value="del_torrent">{L_DELETE_TORRENT}</option>
<option value="del_torrent_move_topic">{L_DELETE_MOVE_TORRENT}</option> <option value="del_torrent_move_topic">{L_DELETE_MOVE_TORRENT}</option>
@ -263,14 +263,17 @@
<!-- ENDIF --> <!-- ENDIF -->
<!-- ENDIF --> <!-- ENDIF -->
</select> </select>
<a href="#" onclick="change_torrents($('#tor-{postrow.attach.tor_reged.ATTACH_ID} select').val()); return false;"><input type="submit" value="{L_EDIT}" class="liteoption" /></a> <a href="#"
<!-- ELSEIF TOR_HELP_LINKS --> onclick="change_torrents($('#tor-{postrow.attach.tor_reged.ATTACH_ID} select').val()); return false;"><input
{TOR_HELP_LINKS} type="submit" value="{L_EDIT}" class="liteoption"/></a>
<!-- ELSE -->
&nbsp;
<!-- ENDIF --> <!-- ENDIF -->
</td> </td>
</tr> </tr>
<!-- IF TOR_HELP_LINKS -->
<tr class="row3 tCenter">
<td colspan="3">{TOR_HELP_LINKS}</td>
</tr>
<!-- ENDIF -->
</table> </table>
<script type="text/javascript"> <script type="text/javascript">