1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-21 16:10:38 +01:00

Merge pull request #5758 from VSEphpbb/ticket/16241

[ticket/16241] Color Palette backwards compatibility
This commit is contained in:
Marc Alexander 2019-12-01 11:36:25 +01:00
commit 8b4892b96b
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

@ -1587,7 +1587,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-color-palette'),
var orientation = el.attr('data-color-palette') || el.attr('data-orientation'), // data-orientation kept for backwards compat.
height = el.attr('data-height'),
width = el.attr('data-width'),
target = el.attr('data-target'),
@ -1801,7 +1801,7 @@ $(function() {
phpbb.registerPageDropdowns();
$('[data-color-palette]').each(function() {
$('[data-color-palette], [data-orientation]').each(function() {
phpbb.registerPalette($(this));
});