Skip to content

Commit 62e609c

Browse files
senkymarc1706
authored andcommitted
[ticket/15522] Improve color palette syntax
PHPBB3-15522
1 parent 7e96098 commit 62e609c

6 files changed

Lines changed: 7 additions & 7 deletions

File tree

phpBB/adm/style/acp_contact.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ <h1>{L_ACP_CONTACT_SETTINGS}</h1>
4444
<!-- INCLUDE acp_posting_buttons.html -->
4545

4646
<dl class="responsive-columns">
47-
<dt style="width: 90px;" id="color_palette_placeholder" data-orientation="v" data-height="12" data-width="15" data-bbcode="true">
47+
<dt style="width: 90px;" id="color_palette_placeholder" data-color-palette="v" data-height="12" data-width="15" data-bbcode="true">
4848
</dt>
4949

5050
<dd style="margin-{S_CONTENT_FLOW_BEGIN}: 90px;">

phpBB/adm/style/acp_groups.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ <h3>{L_WARNING}</h3>
9898
<input name="group_colour" type="text" id="group_colour" value="{GROUP_COLOUR}" size="6" maxlength="6" />
9999
<!-- IF GROUP_COLOUR -->&nbsp;<span style="background-color: #{GROUP_COLOUR}">&nbsp; &nbsp;</span><!-- ENDIF -->&nbsp;&nbsp;<span>
100100
[ <a href="#" id="color_palette_toggle">{L_COLOUR_SWATCH}</a> ]</span>
101-
<div id="color_palette_placeholder" style="display: none;" data-orientation="h" data-height="12" data-width="15" data-target="#group_colour"></div>
101+
<div id="color_palette_placeholder" style="display: none;" data-color-palette="h" data-height="12" data-width="15" data-target="#group_colour"></div>
102102
</dd>
103103
</dl>
104104
<dl>

phpBB/adm/style/acp_users_signature.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<!-- INCLUDE acp_posting_buttons.html -->
2727

2828
<dl class="responsive-columns">
29-
<dt style="width: 90px;" id="color_palette_placeholder" data-orientation="v" data-height="12" data-width="15" data-bbcode="true">
29+
<dt style="width: 90px;" id="color_palette_placeholder" data-color-palette="v" data-height="12" data-width="15" data-bbcode="true">
3030
</dt>
3131
<dd style="margin-{S_CONTENT_FLOW_BEGIN}: 90px;"><textarea name="signature" rows="10" cols="60" style="width: 95%;" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onfocus="initInsertions();" data-bbcode="true">{SIGNATURE}</textarea></dd>
3232
<dd style="margin-{S_CONTENT_FLOW_BEGIN}: 90px; margin-top: 5px;">

phpBB/assets/javascript/core.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1492,7 +1492,7 @@ phpbb.colorPalette = function(dir, width, height) {
14921492
* @param {jQuery} el jQuery object for the palette container.
14931493
*/
14941494
phpbb.registerPalette = function(el) {
1495-
var orientation = el.attr('data-orientation'),
1495+
var orientation = el.attr('data-color-palette'),
14961496
height = el.attr('data-height'),
14971497
width = el.attr('data-width'),
14981498
target = el.attr('data-target'),
@@ -1662,7 +1662,7 @@ $(function() {
16621662

16631663
phpbb.registerPageDropdowns();
16641664

1665-
$('[data-orientation]').each(function() {
1665+
$('[data-color-palette]').each(function() {
16661666
phpbb.registerPalette($(this));
16671667
});
16681668

phpBB/styles/prosilver/template/posting_buttons.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
<div id="colour_palette" style="display: none;">
5353
<dl style="clear: left;">
5454
<dt><label>{L_FONT_COLOR}{L_COLON}</label></dt>
55-
<dd id="color_palette_placeholder" class="color_palette_placeholder" data-orientation="h" data-height="12" data-width="15" data-bbcode="true"></dd>
55+
<dd id="color_palette_placeholder" class="color_palette_placeholder" data-color-palette="h" data-height="12" data-width="15" data-bbcode="true"></dd>
5656
</dl>
5757
</div>
5858

phpBB/styles/prosilver/template/ucp_groups_manage.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ <h3>{L_GROUP_SETTINGS_SAVE}</h3>
5858
<input name="group_colour" type="text" id="group_colour" value="{GROUP_COLOUR}" size="6" maxlength="6" class="inputbox narrow" />
5959
<span style="background-color: #{GROUP_COLOUR};">&nbsp;&nbsp;&nbsp;</span>
6060
[ <a href="#" id="color_palette_toggle">{L_COLOUR_SWATCH}</a> ]
61-
<div id="color_palette_placeholder" class="color_palette_placeholder hidden" data-orientation="h" data-height="12" data-width="15" data-target="#group_colour"></div>
61+
<div id="color_palette_placeholder" class="color_palette_placeholder hidden" data-color-palette="h" data-height="12" data-width="15" data-target="#group_colour"></div>
6262
</dd>
6363
</dl>
6464
<dl>

0 commit comments

Comments
 (0)