фикс предпросмотра в первом посте git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@173 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
pherum83 2011-07-27 23:02:19 +00:00
commit acf147dea5
2 changed files with 3 additions and 3 deletions

View file

@ -172,7 +172,7 @@ switch($this->request['type'])
$hidden_form = '<input type="hidden" name="mode" value="editpost" />';
$hidden_form .= '<input type="hidden" name="'. POST_POST_URL .'" value="'. $post_id .'" />';
$hidden_form .= '<input type="hidden" name="subject" value="'. $post['topic_title'] .'" />';
$submit = $this->response['redirect'] = make_url('posting.php?mode=editpost&p='. $post_id);
$this->response['text'] = '
<form action="posting.php" method="post" name="post">
@ -193,7 +193,7 @@ switch($this->request['type'])
</div>
<textarea id="message-'. $post_id .'" class="editor mrg_4" name="message" rows="18" cols="92">'. $post['post_text'] .'</textarea>
<div class="mrg_4 tCenter">
<input title="Alt+Enter" type="submit" name="preview" value="'. $lang['PREVIEW'] .'">
<input title="Alt+Enter" type="button" id="'.$submit.'" name="preview" value="'. $lang['PREVIEW'] .'">
<input type="button" onclick="edit_post('. $post_id .');" value="'. $lang['CANCEL'] .'">
<input type="button" onclick="edit_post('. $post_id .', \'editor\', $(\'#message-'. $post_id .'\').val()); return false;" class="bold" value="'. $lang['EDIT_POST'] .'">
</div><hr>

View file

@ -57,7 +57,7 @@ $bb_cfg['css_ver'] = 1;
// Increase number of revision after update
$bb_cfg['tp_version'] = '2.0.2';
$bb_cfg['tp_release_state'] = 'TP II r172';
$bb_cfg['tp_release_state'] = 'TP II r173';
$bb_cfg['tp_release_date'] = '28-07-2011';
$bb_cfg['board_disabled_msg'] = 'форум временно отключен'; // 'forums temporarily disabled'; // show this msg if board has been disabled via ON/OFF trigger