/** * Ensure that the ID attribute is rendered and registers the javascript code * for initializing the active control. */ protected function addAttributesToRender($writer) { parent::addAttributesToRender($writer); $writer->addAttribute('id', $this->getClientID()); $options = TJavaScript::encode($this->getPostBackOptions()); $cs = $this->getPage()->getClientScript(); $code = "jQuery('#" . $this->getWidgetID() . "')." . $this->getWidget() . "(" . $options . ");"; $cs->registerEndScript(sprintf('%08X', crc32($code)), $code); }
protected function addAttributesToRender($writer) { $writer->addAttribute('id', $this->getClientID()); parent::addAttributesToRender($writer); }