Fix reply moving

This commit is contained in:
ctrlcctrlv 2013-08-19 13:20:10 +00:00
parent affad5594e
commit fd398f82ed
2 changed files with 45 additions and 1 deletions

View File

@ -1059,10 +1059,13 @@ function mod_move_reply($originBoard, $postID) {
} }
} }
// build index
buildIndex(); buildIndex();
// build new thread
buildThread($newID);
// trigger themes // trigger themes
rebuildThemes($post['op'] ? 'post-thread' : 'post'); rebuildThemes('post');
// mod log // mod log
modLog("Moved post #${postID} to " . sprintf($config['board_abbreviation'], $targetBoard) . " (#${newID})", $originBoard); modLog("Moved post #${postID} to " . sprintf($config['board_abbreviation'], $targetBoard) . " (#${newID})", $originBoard);

View File

@ -0,0 +1,41 @@
<form action="?/{{ board }}/move_reply/{{ post }}" method="post">
<input type="hidden" name="token" value="{{ token }}">
<table>
<tr>
<th>
{% trans 'Post ID' %}
</th>
<td>
&gt;&gt;&gt;{{ config.board_abbreviation|sprintf(board) }}{{ post }}
</td>
</tr>
<tr>
<th>{% trans 'Target board' %}</th>
<td>
<ul style="list-style:none;padding:0">
{% for targetboard in boards %}
<li>
<input type="radio" name="board" value="{{ targetboard.uri }}" id="ban-board-{{ targetboard.uri }}" {% if boards|count == 2 %}checked{% endif %}>
<label style="display:inline" for="ban-board-{{ targetboard.uri }}">
{{ config.board_abbreviation|sprintf(targetboard.uri) }} - {{ targetboard.title|e }}
</label>
</li>
{% endfor %}
</ul>
</td>
<td>
</tr>
<tr>
<th>{% trans 'Target thread' %}</th>
<td>
<p>If you do not want to make the post into a new thread, please specify the thread you want to move the reply to:</p>
<input type="text" name="target_thread"/>
</td>
</tr>
</table>
<ul style="padding:0;text-align:center;list-style:none">
<li><input type="submit" value="{% trans 'Move reply' %}"></li>
</ul>
</form>