| @@ 224-230 (lines=7) @@ | ||
| 221 | { |
|
| 222 | $display = $this->getDisplay(); |
|
| 223 | $visible = $this->getEnabled(true) && $this->getValidationFailed(); |
|
| 224 | if (!$visible) { |
|
| 225 | if ($display === TValidationSummaryDisplayStyle::None || $display === TValidationSummaryDisplayStyle::Dynamic) { |
|
| 226 | $writer->addStyleAttribute('display', 'none'); |
|
| 227 | } else { |
|
| 228 | $writer->addStyleAttribute('visibility', 'hidden'); |
|
| 229 | } |
|
| 230 | } |
|
| 231 | $writer->addAttribute('id', $this->getClientID()); |
|
| 232 | parent::addAttributesToRender($writer); |
|
| 233 | } |
|
| @@ 154-158 (lines=5) @@ | ||
| 151 | { |
|
| 152 | $display = $this->getDisplay(); |
|
| 153 | $visible = $this->getEnabled(true) && !$this->getIsValid(); |
|
| 154 | if ($display === TValidatorDisplayStyle::None || (!$visible && $display === TValidatorDisplayStyle::Dynamic)) { |
|
| 155 | $writer->addStyleAttribute('display', 'none'); |
|
| 156 | } elseif (!$visible) { |
|
| 157 | $writer->addStyleAttribute('visibility', 'hidden'); |
|
| 158 | } |
|
| 159 | $writer->addAttribute('id', $this->getClientID()); |
|
| 160 | parent::addAttributesToRender($writer); |
|
| 161 | $this->renderClientControlScript($writer); |
|