mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/15522] Improve color palette syntax
PHPBB3-15522
This commit is contained in:
committed by
Marc Alexander
parent
7e96098e29
commit
62e609c10c
@@ -1492,7 +1492,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'),
|
||||
@@ -1662,7 +1662,7 @@ $(function() {
|
||||
|
||||
phpbb.registerPageDropdowns();
|
||||
|
||||
$('[data-orientation]').each(function() {
|
||||
$('[data-color-palette]').each(function() {
|
||||
phpbb.registerPalette($(this));
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user