mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 02:27:34 -07:00
r134
git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@134 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
parent
c0c2f7b64b
commit
5a036032e0
3 changed files with 25 additions and 160 deletions
|
@ -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="1." name="codeOpt" title="List item (Ctrl+0)" style="width: 30px;" />
|
||||
<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();" />
|
||||
<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>
|
||||
<textarea id="message-'. $post_id .'" class="editor mrg_4" name="message" rows="18" cols="92">'. $post['post_text'] .'</textarea>
|
||||
<div class="mrg_4 tCenter">
|
||||
|
@ -202,6 +202,9 @@ switch($this->request['type'])
|
|||
$this->response['post_id'] = $post_id;
|
||||
break;
|
||||
|
||||
case 'add':
|
||||
break;
|
||||
|
||||
default:
|
||||
$this->ajax_die('empty type');
|
||||
break;
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -143,9 +143,9 @@ ajax.callback.gen_passkey = function(data){
|
|||
</td>
|
||||
</tr>
|
||||
<script type="text/javascript">
|
||||
ajax.callback.view_message = function(data){
|
||||
ajax.callback.posts = function(data){
|
||||
$('#view_message').show();
|
||||
$('.signature').html(data.html);
|
||||
$('.signature').html(data.message_html);
|
||||
initPostBBCode('.signature');
|
||||
};
|
||||
</script>
|
||||
|
@ -157,7 +157,7 @@ ajax.callback.view_message = function(data){
|
|||
<!-- ELSE -->
|
||||
<td>
|
||||
<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>
|
||||
<!-- ENDIF -->
|
||||
</tr>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue