фикс отправки сообщения в предпросмотр, через ajax редактирование. кодивка в Контрольной панеле приложений git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@305 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
pherum83 2011-11-05 13:12:38 +00:00
commit 261471018a
3 changed files with 3 additions and 3 deletions

View file

@ -524,7 +524,7 @@ if ($view == 'attachments')
if (strlen($post_title) > 32) if (strlen($post_title) > 32)
{ {
$post_title = substr($post_title, 0, 30) . '...'; $post_title = str_short($post_title, 30);
} }
$view_topic = append_sid(BB_ROOT . 'viewtopic.php?' . POST_POST_URL . '=' . $ids[$j]['post_id'] . '#' . $ids[$j]['post_id']); $view_topic = append_sid(BB_ROOT . 'viewtopic.php?' . POST_POST_URL . '=' . $ids[$j]['post_id'] . '#' . $ids[$j]['post_id']);

View file

@ -168,7 +168,7 @@ switch($this->request['type'])
</div> </div>
<textarea id="message-'. $post_id .'" class="editor mrg_4" name="message" rows="18" cols="92">'. $post['post_text'] .'</textarea> <textarea id="message-'. $post_id .'" class="editor mrg_4" name="message" rows="18" cols="92">'. $post['post_text'] .'</textarea>
<div class="mrg_4 tCenter"> <div class="mrg_4 tCenter">
<input title="Alt+Enter" type="submit" value="'.$lang['PREVIEW'].'"> <input title="Alt+Enter" name="preview" type="submit" value="'.$lang['PREVIEW'].'">
<input type="button" onclick="edit_post('. $post_id .');" value="'. $lang['CANCEL'] .'"> <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['SUBMIT'] .'"> <input type="button" onclick="edit_post('. $post_id .', \'editor\', $(\'#message-'. $post_id .'\').val()); return false;" class="bold" value="'. $lang['SUBMIT'] .'">
</div><hr> </div><hr>

View file

@ -53,7 +53,7 @@ $bb_cfg = $tr_cfg = $page_cfg = array();
// Increase number of revision after update // Increase number of revision after update
$bb_cfg['tp_version'] = '2.2 Beta'; $bb_cfg['tp_version'] = '2.2 Beta';
$bb_cfg['tp_release_state'] = 'R304'; $bb_cfg['tp_release_state'] = 'R305';
$bb_cfg['tp_release_date'] = '05-11-2011'; $bb_cfg['tp_release_date'] = '05-11-2011';
// Database // Database