Changeset 1430
- Timestamp:
- 23/12/09 14:19:22 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/modules/kauri-forms/kauri-forms-framework/src/main/kauri/static-{build}.key/kauri.forms/control.js
r1397 r1430 1245 1245 */ 1246 1246 Control.prototype.newValidation = function(value, wireValue){ 1247 if (this.operationalState == Control.STATE_DISABLED) { 1248 this.valueState = Control.STATE_VALID; 1249 return; 1250 } 1247 1251 if (this.getType().validators.length == 0) { 1248 1252 // if there are no validators then we must assume that the control is valid … … 1476 1480 } 1477 1481 this.operationalState = Control.STATE_ENABLED; 1482 // If the control isn't in STATE_INIT, we should re-validate to restore validation messages that may have been present when disable() was called 1483 if (this.valueState != Control.STATE_INIT) { 1484 this.newValidation(this.getValue(), this.getWireValue()); 1485 }; 1478 1486 } 1479 1487 … … 1489 1497 el.addClass("disabled"); 1490 1498 } 1499 this.clearMessage(); 1491 1500 this.operationalState = Control.STATE_DISABLED; 1492 1501 }
