/** * Render a select box with limit values * * @param array An optional array with configuration options * @return string Html select box */ public function limit($config = array()) { $url = KRequest::url(); $url->query['limit'] = '${limit}'; $config['attribs']['onchange'] = 'window.location.href = \'' . $url . '\'.replace(\'%24%7Blimit%7D\', this.value)'; return parent::limit($config); }
/** * Render a select box with limit values * * @param array An optional array with configuration options * @return string Html select box */ public function limit($config = array()) { $config = new KConfig($config); $config->append(array('attribs' => array('onchange' => 'this.form.submit();'))); return parent::limit($config); }