diff options
author | Andreas Fischer <bantu@phpbb.com> | 2010-07-31 02:10:00 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2010-07-31 02:10:00 +0200 |
commit | f179987f6468c6ded301bbb95871d1591b00b98f (patch) | |
tree | 98cffa84fb26000a54a8c69b5be1adf899504032 /phpBB/styles/subsilver2/template/editor.js | |
parent | ccb4182d2906b00a3fdce2790656aace5bdc2c9d (diff) | |
parent | 488030543607b23940cd97ecc44fba047174173d (diff) | |
download | forums-f179987f6468c6ded301bbb95871d1591b00b98f.tar forums-f179987f6468c6ded301bbb95871d1591b00b98f.tar.gz forums-f179987f6468c6ded301bbb95871d1591b00b98f.tar.bz2 forums-f179987f6468c6ded301bbb95871d1591b00b98f.tar.xz forums-f179987f6468c6ded301bbb95871d1591b00b98f.zip |
Merge branch 'ticket/jellydoughnut/9499' into develop-olympus
* ticket/jellydoughnut/9499:
[ticket/9499] Unify definition of dE() and other javascript functions
Diffstat (limited to 'phpBB/styles/subsilver2/template/editor.js')
-rw-r--r-- | phpBB/styles/subsilver2/template/editor.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/styles/subsilver2/template/editor.js b/phpBB/styles/subsilver2/template/editor.js index e340bc74b5..cd22812bab 100644 --- a/phpBB/styles/subsilver2/template/editor.js +++ b/phpBB/styles/subsilver2/template/editor.js @@ -240,6 +240,7 @@ function addquote(post_id, username, l_wrote) theSelection = theSelection.replace(/<\;/ig, '<'); theSelection = theSelection.replace(/>\;/ig, '>'); theSelection = theSelection.replace(/&\;/ig, '&'); + theSelection = theSelection.replace(/ \;/ig, ' '); } else if (document.all) { @@ -387,8 +388,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>'); } |