mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-06 22:45:02 +02:00
Merge pull request #5676 from mrgoldy/ticket/15422
[ticket/15422] Remove redundant BBCode helpline
This commit is contained in:
commit
16941ff495
@ -5,27 +5,6 @@
|
|||||||
var bbcode = new Array();
|
var bbcode = new Array();
|
||||||
var bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]','[flash=]', '[/flash]','[size=]','[/size]'<!-- BEGIN custom_tags -->, {custom_tags.BBCODE_NAME}<!-- END custom_tags -->);
|
var bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]','[flash=]', '[/flash]','[size=]','[/size]'<!-- BEGIN custom_tags -->, {custom_tags.BBCODE_NAME}<!-- END custom_tags -->);
|
||||||
|
|
||||||
// Helpline messages
|
|
||||||
var help_line = {
|
|
||||||
b: '{LA_BBCODE_B_HELP}',
|
|
||||||
i: '{LA_BBCODE_I_HELP}',
|
|
||||||
u: '{LA_BBCODE_U_HELP}',
|
|
||||||
q: '{LA_BBCODE_Q_HELP}',
|
|
||||||
c: '{LA_BBCODE_C_HELP}',
|
|
||||||
l: '{LA_BBCODE_L_HELP}',
|
|
||||||
o: '{LA_BBCODE_O_HELP}',
|
|
||||||
p: '{LA_BBCODE_P_HELP}',
|
|
||||||
w: '{LA_BBCODE_W_HELP}',
|
|
||||||
a: '{LA_BBCODE_A_HELP}',
|
|
||||||
s: '{LA_BBCODE_S_HELP}',
|
|
||||||
f: '{LA_BBCODE_F_HELP}',
|
|
||||||
y: '{LA_BBCODE_Y_HELP}',
|
|
||||||
d: '{LA_BBCODE_D_HELP}'
|
|
||||||
<!-- BEGIN custom_tags -->
|
|
||||||
,cb_{custom_tags.BBCODE_ID}{L_COLON} '{custom_tags.A_BBCODE_HELPLINE}'
|
|
||||||
<!-- END custom_tags -->
|
|
||||||
}
|
|
||||||
|
|
||||||
// ]]>
|
// ]]>
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@ -65,7 +44,7 @@
|
|||||||
</select>
|
</select>
|
||||||
<!-- EVENT acp_posting_buttons_custom_tags_before -->
|
<!-- EVENT acp_posting_buttons_custom_tags_before -->
|
||||||
<!-- BEGIN custom_tags -->
|
<!-- BEGIN custom_tags -->
|
||||||
<input type="button" class="button2" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})" title="{custom_tags.BBCODE_HELPLINE}" />
|
<input type="button" class="button2" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})" title="{{ custom_tags.BBCODE_HELPLINE|e('html_attr') }}" />
|
||||||
<!-- END custom_tags -->
|
<!-- END custom_tags -->
|
||||||
</div>
|
</div>
|
||||||
<!-- EVENT acp_posting_buttons_after -->
|
<!-- EVENT acp_posting_buttons_after -->
|
||||||
|
@ -17,17 +17,10 @@ var is_ie = ((clientPC.indexOf('msie') !== -1) && (clientPC.indexOf('opera') ===
|
|||||||
var is_win = ((clientPC.indexOf('win') !== -1) || (clientPC.indexOf('16bit') !== -1));
|
var is_win = ((clientPC.indexOf('win') !== -1) || (clientPC.indexOf('16bit') !== -1));
|
||||||
var baseHeight;
|
var baseHeight;
|
||||||
|
|
||||||
/**
|
|
||||||
* Shows the help messages in the helpline window
|
|
||||||
*/
|
|
||||||
function helpline(help) {
|
|
||||||
document.forms[form_name].helpbox.value = help_line[help];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fix a bug involving the TextRange object. From
|
* Fix a bug involving the TextRange object. From
|
||||||
* http://www.frostjedi.com/terra/scripts/demo/caretBug.html
|
* http://www.frostjedi.com/terra/scripts/demo/caretBug.html
|
||||||
*/
|
*/
|
||||||
function initInsertions() {
|
function initInsertions() {
|
||||||
var doc;
|
var doc;
|
||||||
|
|
||||||
@ -104,8 +97,8 @@ function bbfontstyle(bbopen, bbclose) {
|
|||||||
}
|
}
|
||||||
// IE
|
// IE
|
||||||
else if (document.selection) {
|
else if (document.selection) {
|
||||||
var range = textarea.createTextRange();
|
var range = textarea.createTextRange();
|
||||||
range.move("character", new_pos);
|
range.move("character", new_pos);
|
||||||
range.select();
|
range.select();
|
||||||
storeCaret(textarea);
|
storeCaret(textarea);
|
||||||
}
|
}
|
||||||
|
@ -1119,7 +1119,6 @@ function display_custom_bbcodes()
|
|||||||
'BBCODE_TAG' => $row['bbcode_tag'],
|
'BBCODE_TAG' => $row['bbcode_tag'],
|
||||||
'BBCODE_TAG_CLEAN' => str_replace('=', '-', $row['bbcode_tag']),
|
'BBCODE_TAG_CLEAN' => str_replace('=', '-', $row['bbcode_tag']),
|
||||||
'BBCODE_HELPLINE' => $row['bbcode_helpline'],
|
'BBCODE_HELPLINE' => $row['bbcode_helpline'],
|
||||||
'A_BBCODE_HELPLINE' => str_replace(array('&', '"', "'", '<', '>'), array('&', '"', "\'", '<', '>'), $row['bbcode_helpline']),
|
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -10,27 +10,6 @@
|
|||||||
var bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]','[flash=]', '[/flash]','[size=]','[/size]'<!-- BEGIN custom_tags -->, {custom_tags.BBCODE_NAME}<!-- END custom_tags -->);
|
var bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]','[flash=]', '[/flash]','[size=]','[/size]'<!-- BEGIN custom_tags -->, {custom_tags.BBCODE_NAME}<!-- END custom_tags -->);
|
||||||
var imageTag = false;
|
var imageTag = false;
|
||||||
|
|
||||||
// Helpline messages
|
|
||||||
var help_line = {
|
|
||||||
b: '{LA_BBCODE_B_HELP}',
|
|
||||||
i: '{LA_BBCODE_I_HELP}',
|
|
||||||
u: '{LA_BBCODE_U_HELP}',
|
|
||||||
q: '{LA_BBCODE_Q_HELP}',
|
|
||||||
c: '{LA_BBCODE_C_HELP}',
|
|
||||||
l: '{LA_BBCODE_L_HELP}',
|
|
||||||
o: '{LA_BBCODE_O_HELP}',
|
|
||||||
p: '{LA_BBCODE_P_HELP}',
|
|
||||||
w: '{LA_BBCODE_W_HELP}',
|
|
||||||
a: '{LA_BBCODE_A_HELP}',
|
|
||||||
s: '{LA_BBCODE_S_HELP}',
|
|
||||||
f: '{LA_BBCODE_F_HELP}',
|
|
||||||
y: '{LA_BBCODE_Y_HELP}',
|
|
||||||
d: '{LA_BBCODE_D_HELP}'
|
|
||||||
<!-- BEGIN custom_tags -->
|
|
||||||
,cb_{custom_tags.BBCODE_ID}: '{custom_tags.A_BBCODE_HELPLINE}'
|
|
||||||
<!-- END custom_tags -->
|
|
||||||
}
|
|
||||||
|
|
||||||
function change_palette()
|
function change_palette()
|
||||||
{
|
{
|
||||||
phpbb.toggleDisplay('colour_palette');
|
phpbb.toggleDisplay('colour_palette');
|
||||||
@ -117,7 +96,7 @@
|
|||||||
<!-- EVENT posting_editor_buttons_custom_tags_before -->
|
<!-- EVENT posting_editor_buttons_custom_tags_before -->
|
||||||
|
|
||||||
<!-- BEGIN custom_tags -->
|
<!-- BEGIN custom_tags -->
|
||||||
<button type="button" class="button button-secondary bbcode-{custom_tags.BBCODE_TAG_CLEAN}" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})" title="{custom_tags.BBCODE_HELPLINE}">
|
<button type="button" class="button button-secondary bbcode-{custom_tags.BBCODE_TAG_CLEAN}" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})" title="{{ custom_tags.BBCODE_HELPLINE|e('html_attr') }}">
|
||||||
{custom_tags.BBCODE_TAG}
|
{custom_tags.BBCODE_TAG}
|
||||||
</button>
|
</button>
|
||||||
<!-- END custom_tags -->
|
<!-- END custom_tags -->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user