Ejemplo n.º 1
0
    public function getJavaScript()
    {
        $javascript = parent::getJavaScript();
        return $javascript . <<<JAVASCRIPT
window['{$this->getJsObjectName()}'] = {$this->getJsObjectName()};
JAVASCRIPT;
    }
    public function getJavaScript()
    {
        // checking if need to remove massactions, but need to display advanced filters
        if (!isset($this->getParentBlock()->hideMassactionColumn) || !$this->getParentBlock()->hideMassactionColumn) {
            $javascript = parent::getJavaScript();
            return $javascript . <<<HTML
window['{$this->getJsObjectName()}'] = {$this->getJsObjectName()};
HTML;
        }
        return '';
    }