транслит англичанам ненужен git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@281 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
pherum83 2011-09-03 14:20:20 +00:00
commit ce9b73463d
4 changed files with 8 additions and 7 deletions

View file

@ -161,8 +161,6 @@ switch($this->request['type'])
<input type="button" value="'.$lang['LIST'].'" name="codeList" title="'.$lang['LIST_TITLE'].'" style="width: 60px;" />
<input type="button" value="1." name="codeOpt" title="'.$lang['LIST_ITEM'].'" style="width: 30px;" />&nbsp;
<input type="button" value="'.$lang['QUOTE_SEL'].'" name="quoteselected" title="'.$lang['QUOTE_SELECTED'].'" onmouseout="bbcode.refreshSelection(false);" onmouseover="bbcode.refreshSelection(true);" onclick="bbcode.onclickQuoteSel();" />&nbsp;
<input type="button" value="'.$lang['TRANSLIT'].'" name="Translit" title="'.$lang['TRANSLIT_TITLE'].'" style="width: 68px;" 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">

View file

@ -53,7 +53,7 @@ $bb_cfg = $tr_cfg = $page_cfg = array();
// Increase number of revision after update
$bb_cfg['tp_version'] = '2.1 Stable';
$bb_cfg['tp_release_state'] = 'R280';
$bb_cfg['tp_release_state'] = 'R281';
$bb_cfg['tp_release_date'] = '03-09-2011';
// Database

View file

@ -171,6 +171,8 @@ $template->assign_vars(array(
'QUIRKS_MODE' => !empty($page_cfg['quirks_mode']),
'SHOW_ADS' => (!$logged_in || isset($bb_cfg['show_ads_users'][$user->id]) || (!($is_admin || $is_mod) && $user->show_ads)),
'USER_HIDE_CAT' => (BB_SCRIPT == 'index'),
'USER_RUS' => $userdata['user_lang'] == 'russian',
'INCLUDE_BBCODE_JS' => !empty($page_cfg['include_bbcode_js']),
'USER_OPTIONS_JS' => ($logged_in) ? bb_json_encode($user->opt_js) : '{}',

View file

@ -92,8 +92,9 @@ ajax.callback.posts = function(data){
<input type="button" value="{L_LIST}" name="codeList" title="{L_LIST_TITLE}" style="width: 60px;"/>
<input type="button" value="1." name="codeOpt" title="{L_LIST_ITEM}" style="width: 30px;" />&nbsp;
<input type="button" value="{L_QUOTE_SEL}" name="quoteselected" title="{L_QUOTE_SELECTED}" onmouseout="bbcode.refreshSelection(false);" onmouseover="bbcode.refreshSelection(true);" onclick="bbcode.onclickQuoteSel();" />&nbsp;
<!-- IF USER_RUS -->
<input type="button" value="{L_TRANSLIT}" name="Translit" title="{L_TRANSLIT_TITLE}" style="width: 68px;" onclick="transliterate(document.post.message, this);" /> <a href="#" onclick="toggle_block('translit_opt'); return false"><span style="color: darkred"><b>?</b></span></a>
<!-- ENDIF -->
</div>
<textarea
@ -104,6 +105,7 @@ ajax.callback.posts = function(data){
onkeyup = "storeCaret(this);"
>{MESSAGE}</textarea>
<!-- IF USER_RUS -->
<div id="translit_opt" class="mrg_4" style="display: none;">
<table cellspacing="0" class="translit_expl borderless bCenter">
<tr>
@ -145,6 +147,7 @@ ajax.callback.posts = function(data){
</tr>
</table>
</div>
<!-- ENDIF -->
<div class="mrg_8 tCenter">
<div id="post-buttons-block" style="display: none;">
@ -191,8 +194,7 @@ function checkForm(form) {
setTimeout(function() { alert(formErrors) }, 100);
return false;
}
<!-- IF QUICK_REPLY -->
<!-- IF IN_PM -->
<!-- IF QUICK_REPLY || IN_PM -->
<!-- ELSE -->
<!-- IF $bb_cfg['use_ajax_posts'] && !IS_GUEST -->
if(form.message.value.length < 100 && submitted)
@ -208,7 +210,6 @@ function checkForm(form) {
return false;
}
<!-- ENDIF -->
<!-- ENDIF -->
<!-- ENDIF -->
return true;
}