#joomla #js #mootools

Joomla using sortable table (grid) with Mootools disabled.

If you have Mootools disabled on Joomla frontend and you want to use a grid like the one described in docs.joomla.org/Adding_sortable_columns_to_a_table_in_a_component, all you have to do is replace the JavaScript function tableOrdering() with your own implementation. An example using jQuery below:

  function Joomla() {
    this.tableOrdering = function(order,dir,task) {
        var form = jQuery('form#adminForm')
        form.children('[name=filter_order_Dir]').val(dir) ;

Joomla = new Joomla();