| @@ 249-254 (lines=6) @@ | ||
| 246 | //need to register the validation manager is validation summary is alone. |
|
| 247 | $formID = $this->getPage()->getForm()->getClientID(); |
|
| 248 | $scriptKey = "TBaseValidator:$formID"; |
|
| 249 | if ($this->getEnableClientScript() && !$cs->isEndScriptRegistered($scriptKey)) { |
|
| 250 | $manager['FormID'] = $formID; |
|
| 251 | $options = TJavaScript::encode($manager); |
|
| 252 | $cs->registerPradoScript('validator'); |
|
| 253 | $cs->registerEndScript($scriptKey, "new Prado.ValidationManager({$options});"); |
|
| 254 | } |
|
| 255 | ||
| 256 | ||
| 257 | $options = TJavaScript::encode($this->getClientScriptOptions()); |
|
| @@ 262-266 (lines=5) @@ | ||
| 259 | } |
|
| 260 | $formID = $this->getPage()->getForm()->getClientID(); |
|
| 261 | $scriptKey = "TBaseValidator:$formID"; |
|
| 262 | if ($this->getEnableClientScript() && !$scripts->isEndScriptRegistered($scriptKey)) { |
|
| 263 | $manager['FormID'] = $formID; |
|
| 264 | $options = TJavaScript::encode($manager); |
|
| 265 | $scripts->registerEndScript($scriptKey, "new Prado.ValidationManager({$options});"); |
|
| 266 | } |
|
| 267 | if ($this->getEnableClientScript()) { |
|
| 268 | $this->registerClientScriptValidator(); |
|
| 269 | } |
|