Example #1
0
    function buildJs()
    {
        $vars = "{}";
        if ($this->ajaxVars) {
            $vars = json_encode($this->ajaxVars);
        }
        $script = 'jQuery("#' . $this->ajaxWrapper . '").jdomAjax({' . '"namespace":"' . implode(".", $this->ajaxContext) . '",
			"vars":' . $vars . '
		});';
        $this->addScriptInline($script, true);
        parent::buildJs();
    }