Permalink
Browse files

only a single JFormFieldColor field can exist (functionally) within a

form
  • Loading branch information...
1 parent 719016e commit 2c44f0a60e216f492320af14597b148756506a85 @infograf768 infograf768 committed Jun 9, 2012
Showing with 8 additions and 13 deletions.
  1. +6 −9 libraries/joomla/html/html/behavior.php
  2. +2 −4 media/system/css/mooRainbow.css
@@ -660,25 +660,22 @@ public static function colorpicker()
if (Browser.opera && (Browser.version >= 11.5)) {
nativeColorUi = true;
}
- var elems = $$('.input-colorpicker');
- elems.each(function(item){
+ $$('.input-colorpicker').each(function(item){
if (nativeColorUi) {
item.type = 'color';
} else {
- new MooRainbow(item,
- {
- imgPath: '" . JURI::root(true)
- . "/media/system/images/mooRainbow/',
+ new MooRainbow(item, {
+ id: item.id,
+ imgPath: '" . JURI::root(true) . "/media/system/images/mooRainbow/',
onComplete: function(color) {
this.element.value = color.hex;
},
- startColor: item.value.hexToRgb(true)
+ startColor: item.value.hexToRgb(true) ? item.value.hexToRgb(true) : [0, 0, 0]
});
}
});
});
- "
- );
+ ");
self::$loaded[__METHOD__] = true;
}
@@ -55,9 +55,7 @@
border-left-color: #f5f5f5;
border-top-color: #f5f5f5;
}
-label {
- font-family: mono;
-}
+
/* Following are just <label> */
.moor-rLabel {
/*display: none;*/
@@ -83,7 +81,7 @@ label {
margin-top: 190px;
margin-left: 315px;
}
-span.moor-ballino { /* Style hue ° (degree) !! */
+span.moor-ballino { /* Style hue º (degree) !! */
/*display: none;*/
visibility: hidden;
margin-top: 190px;

0 comments on commit 2c44f0a

Please sign in to comment.