(function(global) {
    'use strict';

    function setupTableSorter() {
        $('#sessions .tablesorter').tablesorter({
            cssAsc: 'header-sort-asc',
            cssDesc: 'header-sort-desc',
            cssInfoBlock: 'avoid-sort',
            cssChildRow: 'session-blocks-row',
            headerTemplate: '',
            sortList: [[1, 0]]
        });
    }

    function setupPalettePickers() {
        $('.palette-picker-trigger').each(function() {
            var $this = $(this);
            $this.palettepicker({
                availableColors: $this.data('colors'),
                onSelect: function(background, text) {
                    $.ajax({
                        url: $(this).data('href'),
                        method: $(this).data('method'),
                        data: JSON.stringify({'colors': {'text': text, 'background': background}}),
                        dataType: 'json',
                        contentType: 'application/json',
                        error: handleAjaxError,
                        complete: IndicoUI.Dialogs.Util.progress()
                    });
                }
            });
        });
    }

    global.setupSessionsList = function setupSessionsList() {
        enableIfChecked('#sessions-wrapper', '.select-row', '.js-requires-selected-row');
        setupTableSorter();
        setupPalettePickers();

        $('#sessions .toolbar').on('click', '.disabled', function(evt) {
            evt.preventDefault();
            evt.stopPropagation();
        });

        function updateSessionsListOnSuccess(data) {
            if (data) {
                $('#sessions-wrapper').html(data.html);
                setupTableSorter();
                setupPalettePickers();
            }
        }

        $('#sessions').on('indico:htmlUpdated', function() {
            setupTableSorter();
            setupPalettePickers();
        });

        $('#sessions').on('click', '.show-session-blocks', function() {
            $(this).closest('tr').toggleClass('selected').nextUntil('tr:not(.session-blocks-row)', 'tr').toggle();
        });
    };

})(window);

@@ -1532,241 +1532,8 @@
 );%0A%0A
-        function updateSessionsListOnSuccess(data) %7B%0A            if (data) %7B%0A                $('#sessions-wrapper').html(data.html);%0A                setupTableSorter();%0A                setupPalettePickers();%0A            %7D%0A        %7D%0A%0A
     
@@ -1670,33 +1670,8 @@
   %7D)
-;%0A%0A        $('#sessions')
 .on(

Remove `udateSessionsListOnSuccess` function