From 73a509d7d13eff2dd8e38b2d2c9d981f4b9c825e Mon Sep 17 00:00:00 2001
From: Andreas Gohr <gohr@cosmocode.de>
Date: Thu, 27 Aug 2009 16:29:29 +0200
Subject: [PATCH] added class for headline picker

Ignore-this: 6aee01f1e872490512480ff8cac566be

darcs-hash:20090827142929-6e07b-2aba4d2ac75c870f0c6e4ec903ec3c9ce5863842.gz
---
 inc/toolbar.php            | 1 +
 lib/scripts/edit.js        | 5 ++++-
 lib/tpl/default/design.css | 4 ++++
 3 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/inc/toolbar.php b/inc/toolbar.php
index 4eb603707..7f2fe468d 100644
--- a/inc/toolbar.php
+++ b/inc/toolbar.php
@@ -100,6 +100,7 @@ function toolbar_JSdefines($varname){
                 'type'   => 'picker',
                 'title'  => $lang['qb_hs'],
                 'icon'   => 'h.png',
+                'class'  => 'pk_hl',
                 'list'   => array(
                                array(
                                     'type'   => 'format',
diff --git a/lib/scripts/edit.js b/lib/scripts/edit.js
index 215e647b5..acf612217 100644
--- a/lib/scripts/edit.js
+++ b/lib/scripts/edit.js
@@ -61,7 +61,10 @@ function createPicker(id,props,edid){
 
     // create the wrapping div
     var picker            = document.createElement('div');
-    picker.className      = 'picker '+props['class'];
+    picker.className      = 'picker';
+    if(props['class']){
+        picker.className += ' '+props['class'];
+    }
     picker.id             = id;
     picker.style.position = 'absolute';
     picker.style.display  = 'none';
diff --git a/lib/tpl/default/design.css b/lib/tpl/default/design.css
index c3591fc67..b7c18baf8 100644
--- a/lib/tpl/default/design.css
+++ b/lib/tpl/default/design.css
@@ -797,6 +797,10 @@ div.picker {
   background-color: __background_alt__;
 }
 
+div.pk_hl {
+  width: 125px;
+}
+
 button.pickerbutton {
   padding: 0px;
   margin: 0 1px 1px 0;
-- 
GitLab