Index: branches/unlabeled/unlabeled-1.1.2/core/units/selectors/selectors_tag_processor.php =================================================================== diff -u -r1422 -r1484 --- branches/unlabeled/unlabeled-1.1.2/core/units/selectors/selectors_tag_processor.php (.../selectors_tag_processor.php) (revision 1422) +++ branches/unlabeled/unlabeled-1.1.2/core/units/selectors/selectors_tag_processor.php (.../selectors_tag_processor.php) (revision 1484) @@ -7,17 +7,9 @@ { $object =& $this->Application->recallObject( $this->getPrefixSpecial(), $this->Prefix, $params ); $style_data = $object->GetDBField( $params['field'] ); - - $ret = ''; - if($style_data) - { - $separator = getArrayValue($params,'inline') ? ' ' : '
'; - foreach($style_data as $property_name => $property_value) - { - $ret .= $property_name.': '.$property_value.';'.$separator; - } - } + $ret = $object->CompileStyleBody( getArrayValue($params,'inline') ? STYLE_INLINE : STYLE_PREVIEW ); + return $ret; } Index: branches/unlabeled/unlabeled-1.1.2/core/admin_templates/stylesheets/block_style_edit.tpl =================================================================== diff -u -r1422 -r1484 --- branches/unlabeled/unlabeled-1.1.2/core/admin_templates/stylesheets/block_style_edit.tpl (.../block_style_edit.tpl) (revision 1422) +++ branches/unlabeled/unlabeled-1.1.2/core/admin_templates/stylesheets/block_style_edit.tpl (.../block_style_edit.tpl) (revision 1484) @@ -99,6 +99,12 @@   + "> + + + "> + + Index: branches/unlabeled/unlabeled-1.1.2/core/admin_templates/js/colorselector.js =================================================================== diff -u -r1410 -r1484 --- branches/unlabeled/unlabeled-1.1.2/core/admin_templates/js/colorselector.js (.../colorselector.js) (revision 1410) +++ branches/unlabeled/unlabeled-1.1.2/core/admin_templates/js/colorselector.js (.../colorselector.js) (revision 1484) @@ -2,22 +2,17 @@ var aColors = '000000,993300,333300,003300,003366,000080,333399,333333,800000,FF6600,808000,808080,008080,0000FF,666699,808080,FF0000,FF9900,99CC00,339966,33CCCC,3366FF,800080,999999,FF00FF,FFCC00,FFFF00,00FF00,00FFFF,00CCFF,993366,C0C0C0,FF99CC,FFCC99,FFFF99,CCFFCC,CCFFFF,99CCFF,CC99FF,FFFFFF'; - function kColorSelector($field) + function kColorSelector() { - this.Field = $field; - var $selector = document.getElementById('colorSelector_div'); + this.updateColor = updateColor; this.colorMouseOver = colorMouseOver; this.colorMouseOut = colorMouseOut; this.colorClick = colorClick; if( !isset($selector) ) { - var $s_table = document.createElement('TABLE'); - $s_table.id = 'colorSelector'; - $selector.appendChild($s_table); - var $selector = document.createElement('DIV'); $selector.id = 'colorSelector_div'; $selector.className = 'table_color1'; @@ -29,12 +24,18 @@ $selector.style.borderStyle = 'solid'; document.appendChild($selector); + alert('1'); + var $s_table = document.createElement('TABLE'); + $s_table.id = 'colorSelector'; + $selector.appendChild($s_table); + alert('2'); var oTable = document.getElementById('colorSelector'); var iCounter = 0; aColors = aColors.split(','); - + alert('3'); while(iCounter < aColors.length) { + alert('aa'); var oRow = oTable.insertRow(-1); for(var i = 0; i < 8 && iCounter < aColors.length; i++, iCounter++) { Index: branches/unlabeled/unlabeled-1.1.2/core/admin_templates/stylesheets/style_editor.tpl =================================================================== diff -u -r1423 -r1484 --- branches/unlabeled/unlabeled-1.1.2/core/admin_templates/stylesheets/style_editor.tpl (.../style_editor.tpl) (revision 1423) +++ branches/unlabeled/unlabeled-1.1.2/core/admin_templates/stylesheets/style_editor.tpl (.../style_editor.tpl) (revision 1484) @@ -43,6 +43,8 @@ function openColorSelector($e, $field) { + alert('onpen colorselector called'); + var $div = document.getElementById('colorSelector_div'); var posx = 0; @@ -71,9 +73,6 @@ - "> @@ -85,21 +84,36 @@ size="" maxlength="" class="" - onkeypress="$cs.updateColor(event,'color_')" + onkeyup="updateColor(event,'')" onblur="">
" style="display: inline; border: 1px solid #000000;" onclick="openColorSelector(event,'');">      
+   + + "> + + + + +   + + + - + @@ -115,17 +129,18 @@