diff options
| author | Josh Woody <a_jelly_doughnut@phpbb.com> | 2010-07-26 13:25:13 -0500 |
|---|---|---|
| committer | Josh Woody <a_jelly_doughnut@phpbb.com> | 2010-07-26 13:29:53 -0500 |
| commit | 488030543607b23940cd97ecc44fba047174173d (patch) | |
| tree | f547dc4248ca30ce1ca54fa98e770f71dde93834 /phpBB/styles/subsilver2/template | |
| parent | fc25fe694afdab683789c9ed962c77558f85796c (diff) | |
| download | forums-488030543607b23940cd97ecc44fba047174173d.tar forums-488030543607b23940cd97ecc44fba047174173d.tar.gz forums-488030543607b23940cd97ecc44fba047174173d.tar.bz2 forums-488030543607b23940cd97ecc44fba047174173d.tar.xz forums-488030543607b23940cd97ecc44fba047174173d.zip | |
[ticket/9499] Unify definition of dE() and other javascript functions
dE() was defined differently in the ACP and in prosilver. Other javascript
in editor.js files has also been unified (taking the prosilver implementation
as cannonical)
PHPBB3-9499
Diffstat (limited to 'phpBB/styles/subsilver2/template')
| -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>'); } |
