aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/assets/javascript
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2014-02-20 20:59:14 -0600
committerNathan Guse <nathaniel.guse@gmail.com>2014-02-20 20:59:14 -0600
commit4f6b9080e8c997eac0644ede70a19b99914102ee (patch)
tree2ffc0db05c995bc82f3bb05a81f9ab4f33a94399 /phpBB/assets/javascript
parent2df2032b4877ea59412bff80a5b54a7ea6aeb8b8 (diff)
parentb8c836836bf74eacf4c7812013301e11b0688c62 (diff)
downloadforums-4f6b9080e8c997eac0644ede70a19b99914102ee.tar
forums-4f6b9080e8c997eac0644ede70a19b99914102ee.tar.gz
forums-4f6b9080e8c997eac0644ede70a19b99914102ee.tar.bz2
forums-4f6b9080e8c997eac0644ede70a19b99914102ee.tar.xz
forums-4f6b9080e8c997eac0644ede70a19b99914102ee.zip
Merge pull request #2037 from prototech/ticket/12080
[ticket/12080] Fix color palettes when responsive.
Diffstat (limited to 'phpBB/assets/javascript')
-rw-r--r--phpBB/assets/javascript/core.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/assets/javascript/core.js b/phpBB/assets/javascript/core.js
index 5b8331bdce..4657af90ab 100644
--- a/phpBB/assets/javascript/core.js
+++ b/phpBB/assets/javascript/core.js
@@ -994,7 +994,8 @@ phpbb.colorPalette = function(dir, width, height) {
numberList[3] = 'BF';
numberList[4] = 'FF';
- html += '<table style="width: auto;">';
+ var table_class = (dir == 'h') ? 'horizontal-palette' : 'vertical-palette';
+ html += '<table class="not-responsive colour-palette ' + table_class + '" style="width: auto;">';
for (r = 0; r < 5; r++) {
if (dir == 'h') {