Skip to content
Snippets Groups Projects
Commit 3a14dcda authored by madhu sr's avatar madhu sr
Browse files

#Fixes::158862942::madhusr::When we mousehover on the any of the multipicklist...

#Fixes::158862942::madhusr::When we mousehover on the any of the multipicklist value ,value disappears
parent 0c4c8699
No related branches found
No related tags found
1 merge request!1126#Fixes::158862942::madhusr::When we mousehover on the any of the multipicklist...
......@@ -420,6 +420,9 @@ Vtiger_Field_Js('Vtiger_Multipicklist_Field_Js',{},{
if (picklistColor) {
className = '.picklistColor_'+fieldName+'_'+option.replace(' ', '_');
html += className+'{background-color: '+picklistColor+' !important;}';
className = className + '.select2-highlighted';
html += className+'{white: #ffffff !important; background-color: #337ab7 !important;}';
}
}
html +='<\style>';
......
......@@ -33,7 +33,17 @@
{assign var=CLASS_NAME value="{$FIELD_MODEL->getFieldName()}_{$PICKLIST_NAME|replace:' ':'_'}"}
.picklistColor_{$CLASS_NAME} {
background-color: {$PICKLIST_COLORS[$PICKLIST_NAME]} !important;
{if isset($PICKLIST_COLORS[$PICKLIST_NAME])}
background-color: {$PICKLIST_COLORS[$PICKLIST_NAME]} !important;
{if $PICKLIST_COLORS[$PICKLIST_NAME] eq '#ffffff'}
color: #000000 !important;
{/if}
{/if}
}
.picklistColor_{$CLASS_NAME}.select2-highlighted {
white: #ffffff !important;
background-color: #337ab7 !important;
}
{/foreach}
</style>
{/if}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment