diff options
author | Vjacheslav Trushkin <cyberalien@gmail.com> | 2013-04-12 16:40:32 +0300 |
---|---|---|
committer | Vjacheslav Trushkin <cyberalien@gmail.com> | 2013-04-12 16:40:32 +0300 |
commit | fafbce8124e27448164a0a68ef5a8420114309ad (patch) | |
tree | 45d60411c177f79dff728f22a00d960bc2726fb3 /phpBB/styles/prosilver/template/posting_buttons.html | |
parent | c25dfef770e440dec9f1d1eeb71e5ef8c3ffbb66 (diff) | |
download | forums-fafbce8124e27448164a0a68ef5a8420114309ad.tar forums-fafbce8124e27448164a0a68ef5a8420114309ad.tar.gz forums-fafbce8124e27448164a0a68ef5a8420114309ad.tar.bz2 forums-fafbce8124e27448164a0a68ef5a8420114309ad.tar.xz forums-fafbce8124e27448164a0a68ef5a8420114309ad.zip |
[ticket/11275] Do not use document.write() for color palette
Replace document.write() for color palette function
PHPBB3-11275
Diffstat (limited to 'phpBB/styles/prosilver/template/posting_buttons.html')
-rw-r--r-- | phpBB/styles/prosilver/template/posting_buttons.html | 39 |
1 files changed, 16 insertions, 23 deletions
diff --git a/phpBB/styles/prosilver/template/posting_buttons.html b/phpBB/styles/prosilver/template/posting_buttons.html index 8e87407757..fadbc9b3ca 100644 --- a/phpBB/styles/prosilver/template/posting_buttons.html +++ b/phpBB/styles/prosilver/template/posting_buttons.html @@ -35,37 +35,30 @@ var panels = new Array('options-panel', 'attach-panel', 'poll-panel'); var show_panel = 'options-panel'; + function change_palette() + { + dE('colour_palette'); + e = document.getElementById('colour_palette'); + + if (e.style.display == 'block') + { + document.getElementById('bbpalette').value = '{LA_FONT_COLOR_HIDE}'; + } + else + { + document.getElementById('bbpalette').value = '{LA_FONT_COLOR}'; + } + } // ]]> </script> -<script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/editor.js"></script> +<!-- INCLUDEJS template/editor.js --> <!-- IF S_BBCODE_ALLOWED --> <div id="colour_palette" style="display: none;"> <dl style="clear: left;"> <dt><label>{L_FONT_COLOR}{L_COLON}</label></dt> - <dd> - <script type="text/javascript"> - // <![CDATA[ - function change_palette() - { - dE('colour_palette'); - e = document.getElementById('colour_palette'); - - if (e.style.display == 'block') - { - document.getElementById('bbpalette').value = '{LA_FONT_COLOR_HIDE}'; - } - else - { - document.getElementById('bbpalette').value = '{LA_FONT_COLOR}'; - } - } - - colorPalette('h', 15, 10); - // ]]> - </script> - </dd> + <dd id="color_palette_placeholder"></dd> </dl> </div> |