
  $(function() {
        // Предварительная настройка ajaxAction
        ajaxAction.setMsg({
            error:      "{lang('jsError')}",
            noItems:    "{lang('jsNoItems')}",
            inProcess:  "{lang('jsInProcess')}",
        });
        ajaxAction.fixSettings();
  });

    // Функция включения элемента
    function retestItem(id) {
        ajaxAction.reset();
        if(id) ajaxAction.set({id: id});
        ajaxAction.run("{print(RootDir)}/admin/solutions-retest/", {
            processClass: 'proccess',
            onRun: function() {
                if($("#ajaxprocess").css('display') != 'none') return false;
                $("#retestRun").hide();
                $("#ajaxprocess").show();
                return true;
            },
            onSuccess: function() {
                $("#ajaxprocess").hide();
                if(confirm("Reload this page?"))
                    $(".tab.current").click();
            }
        });
    }
