Update viewtopic_attach.tpl

This commit is contained in:
Roman Kelesidis 2023-10-17 15:32:35 +07:00
parent 0474ef2ccc
commit 394153649c

View File

@ -91,15 +91,15 @@
<td colspan="3">{postrow.attach.tor_not_reged.comment.COMMENT}</td>
</tr>
<!-- END comment -->
<!-- IF TOR_CONTROLS -->
<tr class="row3 tCenter">
<td colspan="3">&nbsp;
<td colspan="3">
<script type="text/javascript">
ajax.callback.change_torrent = function(data) {
if(data.title) alert(data.title);
if(data.url) document.location.href = data.url;
};
</script>
<!-- IF TOR_CONTROLS -->
<script type="text/javascript">
function change_torrents()
{
@ -110,16 +110,20 @@
});
}
</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="selected" class="select-action">&raquo; {L_SELECT_ACTION}</option>
<option value="del_torrent">{L_DELETE_TORRENT}</option>
<option value="del_torrent_move_topic">{L_DELETE_MOVE_TORRENT}</option>
</select>
&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>
<!-- ENDIF -->
&nbsp;</td>
<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>
</td>
</tr>
<!-- ENDIF -->
<!-- IF TOR_HELP_LINKS -->
<tr class="row3 tCenter">
<td colspan="3">{TOR_HELP_LINKS}</td>
</tr>
<!-- ENDIF -->
</table>
<div class="spacer_12"></div>
@ -228,6 +232,7 @@
<td colspan="3">{postrow.attach.tor_reged.comment.COMMENT}</td>
</tr>
<!-- END comment -->
<!-- IF TOR_CONTROLS -->
<tr class="row3 tCenter">
<td colspan="3">
<script type="text/javascript">
@ -236,7 +241,6 @@
if (data.url) document.location.href = data.url;
};
</script>
<!-- IF TOR_CONTROLS -->
<script type="text/javascript">
function change_torrents()
{
@ -267,9 +271,9 @@
<!-- ENDIF -->
</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>
<!-- ENDIF -->
</td>
</tr>
<!-- ENDIF -->
<!-- IF TOR_HELP_LINKS -->
<tr class="row3 tCenter">
<td colspan="3">{TOR_HELP_LINKS}</td>