Hello.
We are trying to modify the order of the domain listing. To do this we have tried to modify the clientreadomains.tpl script
{include file="$template/includes/tablelist.tpl" tableName="DomainsList" noSortColumns="0, 1" startOrderCol="2" filterColumn="5"}
<script>
jQuery(document).ready(function () {
var table = jQuery('#tableDomainsList').show().DataTable();
{if $orderby == 'domain'}
table.order(2, '{$sort}');
{elseif $orderby == 'regdate' || $orderby == 'registrationdate'}
table.order(3, '{$sort}');
{elseif $orderby == 'nextduedate'}
table.order(4, '{$sort}');
{elseif $orderby == 'autorenew'}
table.order(5, '{$sort}');
{elseif $orderby == 'status'}
table.order(6, '{$sort}');
{/if}
table.draw();
jQuery('#tableLoading').hide();
});
</script>
Changing the default order from 2 to 6 (status) but it doesn't work. It always overwrites the value we modify and orders it by name (default order).
Thank you!