mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
Merge pull request #5136 from senky/ticket/15522-2
[ticket/15522] Improve color palette syntax * github.com:/phpbb/phpbb: [ticket/15522] Improve color palette syntax
This commit is contained in:
@@ -1481,7 +1481,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'),
|
||||
@@ -1651,7 +1651,7 @@ $(function() {
|
||||
|
||||
phpbb.registerPageDropdowns();
|
||||
|
||||
$('[data-orientation]').each(function() {
|
||||
$('[data-color-palette]').each(function() {
|
||||
phpbb.registerPalette($(this));
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user