summaryrefslogtreecommitdiff
path: root/js/install.js
blob: 32a54111e28a046b7c6834b40afcd9754ae11003 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$(document).ready(function(){
    $.ajax({url:'check-fancy',
        type:'GET',
        success:function(data, textStatus) {
            $('#fancy-enable').attr('checked', true);
            $('#fancy-disable').attr('checked', false);
            $('#fancy-form_guide').text(data);
        },
        error:function(XMLHttpRequest, textStatus, errorThrown) {
            $('#fancy-enable').attr('checked', false);
            $('#fancy-disable').attr('checked', true);
            $('#fancy-enable').attr('disabled', true);
            $('#fancy-disable').attr('disabled', true);
            $('#fancy-form_guide').text("Fancy URL support detection failed, disabling this option. Make sure you renamed htaccess.sample to .htaccess.");
        }
    });
});