doc->addScript('js/defaultHint.js', array(), 'defaultHint'); $params = array( 'elements' => array(array('selector' => '#list-search-query', 'hint' => 'Search', 'required' => false)) ); $this->doc->addInitFunction ('$().defaultHint', array($params)); $item['query'] = Qs_Request::getGetValue('query'); $item['templatePath'] = $this->_getTemplatePath(); $item['tpl'] = $this->getTemplate('view.tpl'); $this->_addItem($item); } }