get('id'); $listOrder = $this->escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); $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[direction.selectedIndex].value; } Joomla.tableOrdering(order, dirn, ""); }; Joomla.closeModalDialog = function() { window.jQuery("#modal-download").modal("hide"); }; '); ?>