/** * 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); }
public function __construct(KConfig $config) { parent::__construct($config); JFactory::getLanguage()->load('com_moyo', JPATH_SITE . '/components/com_moyo', null, true); }
/** * 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); }