git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@134 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
nanosimbiot 2011-07-24 11:34:58 +00:00
commit 5a036032e0
3 changed files with 25 additions and 160 deletions

View file

@ -171,7 +171,7 @@ switch($this->request['type'])
<input type="button" value="List" name="codeList" title="List (Ctrl+L)" style="width: 46px;" /> <input type="button" value="List" name="codeList" title="List (Ctrl+L)" style="width: 46px;" />
<input type="button" value="1." name="codeOpt" title="List item (Ctrl+0)" style="width: 30px;" />&nbsp; <input type="button" value="1." name="codeOpt" title="List item (Ctrl+0)" style="width: 30px;" />&nbsp;
<input type="button" value="Quote selected" name="quoteselected" title="{L_QUOTE_SELECTED}" style="width: 100px;" onmouseout="bbcode.refreshSelection(false);" onmouseover="bbcode.refreshSelection(true);" onclick="bbcode.onclickQuoteSel();" />&nbsp; <input type="button" value="Quote selected" name="quoteselected" title="{L_QUOTE_SELECTED}" style="width: 100px;" onmouseout="bbcode.refreshSelection(false);" onmouseover="bbcode.refreshSelection(true);" onclick="bbcode.onclickQuoteSel();" />&nbsp;
<input type="button" value="Translit" name="Translit" title="Перевести выделение из транслита на русский" style="width: 60px;" onclick="transliterate(document.post.message, this);" /> <a href="#" onclick="toggle_block(\'translit_opt\'); return false"><span style="color: darkred"><b>?</b></span></a> <input type="button" value="Translit" name="Translit" title="Перевести выделение из транслита на русский" style="width: 60px;" onclick="transliterate(document.post.message, this);" />
</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">
@ -202,6 +202,9 @@ switch($this->request['type'])
$this->response['post_id'] = $post_id; $this->response['post_id'] = $post_id;
break; break;
case 'add':
break;
default: default:
$this->ajax_die('empty type'); $this->ajax_die('empty type');
break; } break; }

File diff suppressed because one or more lines are too long

View file

@ -143,9 +143,9 @@ ajax.callback.gen_passkey = function(data){
</td> </td>
</tr> </tr>
<script type="text/javascript"> <script type="text/javascript">
ajax.callback.view_message = function(data){ ajax.callback.posts = function(data){
$('#view_message').show(); $('#view_message').show();
$('.signature').html(data.html); $('.signature').html(data.message_html);
initPostBBCode('.signature'); initPostBBCode('.signature');
}; };
</script> </script>
@ -157,7 +157,7 @@ ajax.callback.view_message = function(data){
<!-- ELSE --> <!-- ELSE -->
<td> <td>
<textarea id="user_sig" name="user_sig" rows="5" cols="60" style="width: 96%;">{USER_SIG}</textarea> <textarea id="user_sig" name="user_sig" rows="5" cols="60" style="width: 96%;">{USER_SIG}</textarea>
<input type="button" value="{L_PREVIEW}" onclick="ajax.exec({ action: 'view_message', message: $('textarea#user_sig').val() });"> <input type="button" value="{L_PREVIEW}" onclick="ajax.exec({ action: 'posts', type: 'view_message', message: $('textarea#user_sig').val() });">
</td> </td>
<!-- ENDIF --> <!-- ENDIF -->
</tr> </tr>