Skip to content
Browse files

Added whiteliste to DataGridWarningField. Fixes #3864.

  • Loading branch information...
1 parent b792b56 commit 7c1b1bf09aa0b46b081dec2b612932ef179d03fb @jetthe jetthe committed Jul 14, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 net/systemeD/controls/DataGridWarningField.as
View
6 net/systemeD/controls/DataGridWarningField.as
@@ -8,10 +8,12 @@ package net.systemeD.controls {
private var _image:Image;
[Embed(source="../../../embedded/warning.png")] private var warningIcon:Class;
+ private var _whiteList:Array = [];
function DataGridWarningField():void {
super();
setStyle('paddingLeft',2);
+ _whiteList.push("ref","source","collection_times","service_times","smoking_hours","opening_hours");
}
override protected function createChildren():void {
@@ -25,8 +27,8 @@ package net.systemeD.controls {
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
super.updateDisplayList(unscaledWidth, unscaledHeight);
-
- if (data.value && data.value.indexOf(';')>-1) {
+
+ if ( (_whiteList.indexOf(data.key.toLowerCase()) == -1) && (data.value && data.value.indexOf(';')>-1)) {
setStyle('color',0xFF0000);
_image.visible=true;
_image.x = width -_image.width -5;

0 comments on commit 7c1b1bf

Please sign in to comment.
Something went wrong with that request. Please try again.