1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-20 16:41:26 +02:00

[ticket/15522] Improve color palette syntax

PHPBB3-15522
This commit is contained in:
Jakub Senko
2018-02-18 16:44:05 +01:00
parent 2470dcbc20
commit 42ff95c300
6 changed files with 7 additions and 7 deletions

@@ -1482,7 +1482,7 @@ phpbb.colorPalette = function(dir, width, height) {
* @param {jQuery} el jQuery object for the palette container.
*/
phpbb.registerPalette = function(el) {
var orientation = el.attr('data-orientation'),
var orientation = el.attr('data-color-palette'),
height = el.attr('data-height'),
width = el.attr('data-width'),
target = el.attr('data-target'),
@@ -1652,7 +1652,7 @@ $(function() {
phpbb.registerPageDropdowns();
$('[data-orientation]').each(function() {
$('[data-color-palette]').each(function() {
phpbb.registerPalette($(this));
});