get('id'); $listOrder = $this->escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); $ordering = ($listOrder == 'a.lft'); $canOrder = $user->authorise('core.edit.state', 'com_tags'); $saveOrder = ($listOrder == 'a.lft' && $listDirn == 'asc'); if ($saveOrder) { $saveOrderingUrl = 'index.php?option=com_tags&task=tags.saveOrderAjax'; JHtml::_('sortablelist.sortable', 'categoryList', 'adminForm', strtolower($listDirn), $saveOrderingUrl, false, true); } $sortFields = $this->getSortFields(); JFactory::getDocument()->addScriptDeclaration(' Joomla.orderTable = function() { table = document.getElementById("sortTable"); direction = document.getElementById("directionTable"); order = table.options[table.selectedIndex].value; if (order != "' . $listOrder . '") { dirn = "asc"; } else { dirn = direction.options[dir