1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-06 06:25:04 +02:00

not ideal, but hey!

git-svn-id: file:///svn/phpbb/trunk@7569 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2007-05-14 15:04:54 +00:00
parent 2b020b033d
commit 1c4ddb5366
2 changed files with 21 additions and 11 deletions

@ -47,6 +47,7 @@
<fieldset>
<legend>{L_SIGNATURE}</legend>
<p>{L_SIGNATURE_EXPLAIN}</p>
<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="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 -->
</div>
<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>
<!-- IF S_BBCODE_ALLOWED -->
@ -98,7 +106,7 @@
</div>
</fieldset>
<fieldset class="quick">
<fieldset class="submit-buttons">
<input class="button1" type="submit" name="update" value="{L_SUBMIT}" />&nbsp;
<input class="button2" type="submit" name="preview" value="{L_PREVIEW}" />
</fieldset>

@ -35,16 +35,17 @@ function initInsertions()
var doc;
if(document.forms[form_name])
{
doc = document;
}
else
doc = document;
}
else
{
doc = opener.document;
}
var textarea = doc.forms[form_name].elements[text_name];
if (is_ie && typeof(baseHeight) != 'number')
{
textarea.focus();
{
textarea.focus();
baseHeight = doc.selection.createRange().duplicate().boundingHeight;
document.body.focus();
}
@ -118,7 +119,7 @@ function bbfontstyle(bbopen, bbclose)
{
var range = textarea.createTextRange();
range.move("character", new_pos);
range.move("character", new_pos);
range.select();
storeCaret(textarea);
}
@ -172,10 +173,11 @@ function insert_text(text, spaces, popup)
{
textarea.value = textarea.value + text;
}
if (!popup)
if (!popup)
{
textarea.focus();
}
}
}
@ -307,7 +309,7 @@ function colorPalette(dir, width, height)
numberList[3] = 'BF';
numberList[4] = 'FF';
document.writeln('<table cellspacing="1" cellpadding="0" border="0">');
document.writeln('<table class="type2">');
for (r = 0; r < 5; r++)
{