var AdminModelActions = function(actionErrorMessage, actionConfirmations) {
    // Actions helpers. TODO: Move to separate file
    this.execute = function(name) {
        var selected = $('input.action-checkbox:checked').size();

        if (selected === 0) {
            alert(actionErrorMessage);
            return false;
        }

        var msg = actionConfirmations[name];

        if (!!msg)
            if (!confirm(msg))
                return false;

        // Update hidden form and submit it
        var form = $('#action_form');
        $('#action', form).val(name);

        $('input.action-checkbox', form).remove();
        $('input.action-checkbox:checked').each(function() {
            form.append($(this).clone());
        });

        form.submit();

        return false;
    };

    $(function() {
        $('.action-rowtoggle').change(function() {
            $('input.action-checkbox').prop('checked', this.checked);
        });
    });
};

@@ -958,12 +958,448 @@
 %0A    %7D);
+%0A%0A    $(function() %7B%0A        var inputs = $('input.action-checkbox');%0A        inputs.change(function() %7B%0A            var allInputsChecked = true;%0A            for (var i = 0; i %3C inputs.length; i++) %7B%0A                if (!inputs%5Bi%5D.checked) %7B%0A                    allInputsChecked = false;%0A                    break;%0A                %7D%0A            %7D%0A            $('.action-rowtoggle').attr('checked', allInputsChecked);%0A        %7D);%0A    %7D);
 %0A%7D;%0A

Update actions.js