issue 2728, added colorpicker in widget layer

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12477 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
chschy 2012-12-27 06:38:00 +00:00
parent 6544804465
commit cd4078d396
3 changed files with 16 additions and 7 deletions

View file

@ -682,7 +682,14 @@ function doShowWidgetSizeSetup(px, py, obj) {
jQuery.each(opts, function(key, val){
var el = form[0].elements[key];
if (el) el.value = val;
if (el)
{
el.value = val;
if(el.className.match(/\bcolor-indicator\b/))
{
el.style.background = el.value = '#'+el.value;
}
}
if (el.tagName.toLowerCase() == "select")
{
if(el.selectedIndex == -1) {