Minor improvements (#1230)

* Minor improvements

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2023-12-20 17:46:51 +07:00 committed by GitHub
commit 517b62c2ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 32 deletions

View file

@ -19,7 +19,7 @@
- search.php parameter sanitizing [\#1213](https://github.com/torrentpier/torrentpier/pull/1213) ([kovalensky](https://github.com/kovalensky), [belomaxorka](https://github.com/belomaxorka)) - search.php parameter sanitizing [\#1213](https://github.com/torrentpier/torrentpier/pull/1213) ([kovalensky](https://github.com/kovalensky), [belomaxorka](https://github.com/belomaxorka))
- Limit execution time for forum file-listing [\#1211](https://github.com/torrentpier/torrentpier/pull/1211) ([kovalensky](https://github.com/kovalensky), [belomaxorka](https://github.com/belomaxorka)) - Limit execution time for forum file-listing [\#1211](https://github.com/torrentpier/torrentpier/pull/1211) ([kovalensky](https://github.com/kovalensky), [belomaxorka](https://github.com/belomaxorka))
- Some reported bugfixes [\#1214](https://github.com/torrentpier/torrentpier/pull/1214) ([belomaxorka](https://github.com/belomaxorka)) - Some reported bugfixes [\#1214](https://github.com/torrentpier/torrentpier/pull/1214) ([belomaxorka](https://github.com/belomaxorka))
- Minor improvements [\#1215](https://github.com/torrentpier/torrentpier/pull/1215), [\#1217](https://github.com/torrentpier/torrentpier/pull/1217), [\#1219](https://github.com/torrentpier/torrentpier/pull/1219), [\#1220](https://github.com/torrentpier/torrentpier/pull/1220), [\#1224](https://github.com/torrentpier/torrentpier/pull/1224), [\#1228](https://github.com/torrentpier/torrentpier/pull/1228), [\#1229](https://github.com/torrentpier/torrentpier/pull/1229) ([belomaxorka](https://github.com/belomaxorka)) - Minor improvements [\#1215](https://github.com/torrentpier/torrentpier/pull/1215), [\#1217](https://github.com/torrentpier/torrentpier/pull/1217), [\#1219](https://github.com/torrentpier/torrentpier/pull/1219), [\#1220](https://github.com/torrentpier/torrentpier/pull/1220), [\#1224](https://github.com/torrentpier/torrentpier/pull/1224), [\#1228](https://github.com/torrentpier/torrentpier/pull/1228), [\#1229](https://github.com/torrentpier/torrentpier/pull/1229), [\#1230](https://github.com/torrentpier/torrentpier/pull/1230) ([belomaxorka](https://github.com/belomaxorka))
- Fixed extensions issue [\#1218](https://github.com/torrentpier/torrentpier/pull/1218) ([belomaxorka](https://github.com/belomaxorka)) - Fixed extensions issue [\#1218](https://github.com/torrentpier/torrentpier/pull/1218) ([belomaxorka](https://github.com/belomaxorka))
- Fixed broken sorting in group.php [\#1221](https://github.com/torrentpier/torrentpier/pull/1221) ([belomaxorka](https://github.com/belomaxorka)) - Fixed broken sorting in group.php [\#1221](https://github.com/torrentpier/torrentpier/pull/1221) ([belomaxorka](https://github.com/belomaxorka))
- Code re-formatting [\#1225](https://github.com/torrentpier/torrentpier/pull/1225) ([kovalensky](https://github.com/kovalensky)) - Code re-formatting [\#1225](https://github.com/torrentpier/torrentpier/pull/1225) ([kovalensky](https://github.com/kovalensky))

View file

@ -91,18 +91,17 @@
<td colspan="3">{postrow.attach.tor_not_reged.comment.COMMENT}</td> <td colspan="3">{postrow.attach.tor_not_reged.comment.COMMENT}</td>
</tr> </tr>
<!-- END comment --> <!-- END comment -->
<!-- IF TOR_CONTROLS -->
<tr class="row3 tCenter"> <tr class="row3 tCenter">
<td colspan="3">&nbsp; <td colspan="3">
<script type="text/javascript"> <script type="text/javascript">
ajax.callback.change_torrent = function (data) { ajax.callback.change_torrent = function (data) {
if (data.title) alert(data.title); if (data.title) alert(data.title);
if (data.url) document.location.href = data.url; if (data.url) document.location.href = data.url;
}; };
</script> </script>
<!-- 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_not_reged.ATTACH_ID}, attach_id: {postrow.attach.tor_not_reged.ATTACH_ID},
@ -110,16 +109,18 @@
}); });
} }
</script> </script>
<select name="tor_action" id="tor-select-{postrow.attach.tor_not_reged.ATTACH_ID}" onchange="$('#tor-confirm-{postrow.attach.tor_not_reged.ATTACH_ID}').attr('checked', false); $('#tor-submit-{postrow.attach.tor_not_reged.ATTACH_ID}').attr('disabled', true)"> <select name="tor_action" id="tor-select-{postrow.attach.tor_not_reged.ATTACH_ID}"
onchange="$('#tor-confirm-{postrow.attach.tor_not_reged.ATTACH_ID}').attr('checked', false); $('#tor-submit-{postrow.attach.tor_not_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>
</select> </select>
<a href="#"
&nbsp; <a href="#" onclick="change_torrents($('#tor-{postrow.attach.tor_reged.ATTACH_ID} select').val()); return false;"><input type="submit" value="{L_SUBMIT}" class="liteoption" /></a> onclick="change_torrents($('#tor-{postrow.attach.tor_reged.ATTACH_ID} select').val()); return false;"><input
<!-- ENDIF --> type="submit" value="{L_SUBMIT}" class="liteoption"/></a>
&nbsp;</td> </td>
</tr> </tr>
<!-- ENDIF -->
</table> </table>
<div class="spacer_12"></div> <div class="spacer_12"></div>
@ -230,6 +231,7 @@
<td colspan="3">{postrow.attach.tor_reged.comment.COMMENT}</td> <td colspan="3">{postrow.attach.tor_reged.comment.COMMENT}</td>
</tr> </tr>
<!-- END comment --> <!-- END comment -->
<!-- IF TOR_CONTROLS -->
<tr class="row3 tCenter"> <tr class="row3 tCenter">
<td colspan="3"> <td colspan="3">
<script type="text/javascript"> <script type="text/javascript">
@ -238,7 +240,6 @@
if (data.url) document.location.href = data.url; if (data.url) document.location.href = data.url;
}; };
</script> </script>
<!-- IF TOR_CONTROLS -->
<script type="text/javascript"> <script type="text/javascript">
function change_torrents() { function change_torrents() {
ajax.exec({ ajax.exec({
@ -271,9 +272,9 @@
<a href="#" <a href="#"
onclick="change_torrents($('#tor-{postrow.attach.tor_reged.ATTACH_ID} select').val()); return false;"><input onclick="change_torrents($('#tor-{postrow.attach.tor_reged.ATTACH_ID} select').val()); return false;"><input
type="submit" value="{L_EDIT}" class="liteoption"/></a> type="submit" value="{L_EDIT}" class="liteoption"/></a>
<!-- ENDIF -->
</td> </td>
</tr> </tr>
<!-- ENDIF -->
<!-- IF TOR_HELP_LINKS --> <!-- IF TOR_HELP_LINKS -->
<tr class="row3 tCenter"> <tr class="row3 tCenter">
<td colspan="3">{TOR_HELP_LINKS}</td> <td colspan="3">{TOR_HELP_LINKS}</td>