mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
not ideal, but hey!
git-svn-id: file:///svn/phpbb/trunk@7569 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
2b020b033d
commit
1c4ddb5366
2 changed files with 21 additions and 11 deletions
|
@ -47,6 +47,7 @@
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>{L_SIGNATURE}</legend>
|
<legend>{L_SIGNATURE}</legend>
|
||||||
<p>{L_SIGNATURE_EXPLAIN}</p>
|
<p>{L_SIGNATURE_EXPLAIN}</p>
|
||||||
|
|
||||||
<div id="format-buttons">
|
<div id="format-buttons">
|
||||||
<input type="button" class="button2" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold; width: 30px;" onclick="bbstyle(0)" onmouseover="helpline('b')" onmouseout="helpline('tip')" />
|
<input type="button" class="button2" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold; width: 30px;" onclick="bbstyle(0)" onmouseover="helpline('b')" onmouseout="helpline('tip')" />
|
||||||
<input type="button" class="button2" accesskey="i" name="addbbcode2" value=" i " style="font-style:italic; width: 30px;" onclick="bbstyle(2)" onmouseover="helpline('i')" onmouseout="helpline('tip')" />
|
<input type="button" class="button2" accesskey="i" name="addbbcode2" value=" i " style="font-style:italic; width: 30px;" onclick="bbstyle(2)" onmouseover="helpline('i')" onmouseout="helpline('tip')" />
|
||||||
|
@ -81,8 +82,15 @@
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p><input type="text" class="text full" style="border: 0; background: none;" name="helpbox" value="{L_STYLES_TIP}" /></p>
|
<p><input type="text" class="text full" style="border: 0; background: none;" name="helpbox" value="{L_STYLES_TIP}" /></p>
|
||||||
<div style="text-align: left;"><textarea name="signature" rows="10" cols="60" style="width: 80%;" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);">{SIGNATURE}</textarea></div>
|
<div style="text-align: left;">
|
||||||
|
<div style="width: 10%; float: right; margin-right: 1%;"><script type="text/javascript"><!--
|
||||||
|
colorPalette('v', 17, 5);
|
||||||
|
//--></script>
|
||||||
|
</div>
|
||||||
|
<textarea name="signature" rows="10" cols="60" style="width: 86%;" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);">{SIGNATURE}</textarea>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<!-- IF S_BBCODE_ALLOWED -->
|
<!-- IF S_BBCODE_ALLOWED -->
|
||||||
|
@ -98,7 +106,7 @@
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<fieldset class="quick">
|
<fieldset class="submit-buttons">
|
||||||
<input class="button1" type="submit" name="update" value="{L_SUBMIT}" />
|
<input class="button1" type="submit" name="update" value="{L_SUBMIT}" />
|
||||||
<input class="button2" type="submit" name="preview" value="{L_PREVIEW}" />
|
<input class="button2" type="submit" name="preview" value="{L_PREVIEW}" />
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
|
@ -35,16 +35,17 @@ function initInsertions()
|
||||||
var doc;
|
var doc;
|
||||||
if(document.forms[form_name])
|
if(document.forms[form_name])
|
||||||
{
|
{
|
||||||
doc = document;
|
doc = document;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
doc = opener.document;
|
doc = opener.document;
|
||||||
}
|
}
|
||||||
|
|
||||||
var textarea = doc.forms[form_name].elements[text_name];
|
var textarea = doc.forms[form_name].elements[text_name];
|
||||||
if (is_ie && typeof(baseHeight) != 'number')
|
if (is_ie && typeof(baseHeight) != 'number')
|
||||||
{
|
{
|
||||||
textarea.focus();
|
textarea.focus();
|
||||||
baseHeight = doc.selection.createRange().duplicate().boundingHeight;
|
baseHeight = doc.selection.createRange().duplicate().boundingHeight;
|
||||||
document.body.focus();
|
document.body.focus();
|
||||||
}
|
}
|
||||||
|
@ -118,7 +119,7 @@ function bbfontstyle(bbopen, bbclose)
|
||||||
{
|
{
|
||||||
|
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
@ -172,10 +173,11 @@ function insert_text(text, spaces, popup)
|
||||||
{
|
{
|
||||||
textarea.value = textarea.value + text;
|
textarea.value = textarea.value + text;
|
||||||
}
|
}
|
||||||
if (!popup)
|
|
||||||
|
if (!popup)
|
||||||
{
|
{
|
||||||
textarea.focus();
|
textarea.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -307,7 +309,7 @@ function colorPalette(dir, width, height)
|
||||||
numberList[3] = 'BF';
|
numberList[3] = 'BF';
|
||||||
numberList[4] = 'FF';
|
numberList[4] = 'FF';
|
||||||
|
|
||||||
document.writeln('<table cellspacing="1" cellpadding="0" border="0">');
|
document.writeln('<table class="type2">');
|
||||||
|
|
||||||
for (r = 0; r < 5; r++)
|
for (r = 0; r < 5; r++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue