diff options
Diffstat (limited to 'phpBB/adm')
| -rw-r--r-- | phpBB/adm/style/acp_ban.html | 6 | ||||
| -rw-r--r-- | phpBB/adm/style/editor.js | 15 | 
2 files changed, 13 insertions, 8 deletions
| diff --git a/phpBB/adm/style/acp_ban.html b/phpBB/adm/style/acp_ban.html index 539e8032dd..cf44f4aaa7 100644 --- a/phpBB/adm/style/acp_ban.html +++ b/phpBB/adm/style/acp_ban.html @@ -31,9 +31,9 @@  	function display_details(option)  	{ -		document.getElementById('acp_unban').unbangivereason.value = ban_give_reason[option]; -		document.getElementById('acp_unban').unbanreason.value = ban_reason[option]; -		document.getElementById('acp_unban').unbanlength.value = ban_length[option]; +		document.getElementById('acp_unban').unbangivereason.innerHTML = ban_give_reason[option]; +		document.getElementById('acp_unban').unbanreason.innerHTML = ban_reason[option]; +		document.getElementById('acp_unban').unbanlength.innerHTML = ban_length[option];  	}  // ]]> diff --git a/phpBB/adm/style/editor.js b/phpBB/adm/style/editor.js index 7e3ce1c708..217aa699e2 100644 --- a/phpBB/adm/style/editor.js +++ b/phpBB/adm/style/editor.js @@ -46,7 +46,11 @@ function initInsertions()  	{  		textarea.focus();  		baseHeight = doc.selection.createRange().duplicate().boundingHeight; -		// document.body.focus(); + +		if (!document.forms[form_name]) +		{ +			document.body.focus(); +		}  	}  } @@ -230,6 +234,7 @@ function addquote(post_id, username)  			theSelection = theSelection.replace(/<\;/ig, '<');  			theSelection = theSelection.replace(/>\;/ig, '>');  			theSelection = theSelection.replace(/&\;/ig, '&');			 +			theSelection = theSelection.replace(/ \;/ig, ' ');  		}  		else if (document.all)  		{ @@ -273,8 +278,8 @@ function mozWrap(txtarea, open, close)  	var s3 = (txtarea.value).substring(selEnd, selLength);  	txtarea.value = s1 + open + s2 + close + s3; -	txtarea.selectionStart = selEnd + open.length + close.length; -	txtarea.selectionEnd = txtarea.selectionStart; +	txtarea.selectionStart = selStart + open.length; +	txtarea.selectionEnd = selEnd + open.length;  	txtarea.focus();  	txtarea.scrollTop = scrollTop; @@ -327,8 +332,8 @@ function colorPalette(dir, width, height)  			for (b = 0; b < 5; b++)  			{  				color = String(numberList[r]) + String(numberList[g]) + String(numberList[b]); -				document.write('<td bgcolor="#' + color + '">'); -				document.write('<a href="#" onclick="bbfontstyle(\'[color=#' + color + ']\', \'[/color]\'); return false;" onmouseover="helpline(\'s\');"  onmouseout="helpline(\'tip\');"><img src="images/spacer.gif" width="' + width + '" height="' + height + '" alt="#' + color + '" title="#' + color + '" /></a>'); +				document.write('<td bgcolor="#' + color + '" style="width: ' + width + 'px; height: ' + height + 'px;">'); +				document.write('<a href="#" onclick="bbfontstyle(\'[color=#' + color + ']\', \'[/color]\'); return false;"><img src="images/spacer.gif" width="' + width + '" height="' + height + '" alt="#' + color + '" title="#' + color + '" /></a>');  				document.writeln('</td>');  			} | 
