1 $(document).ready(function(){
2 $.ajax({url:'check-fancy',
4 success:function(data, textStatus) {
5 $('#fancy-enable').attr('checked', true);
6 $('#fancy-disable').attr('checked', false);
7 $('#fancy-form_guide').text(data);
9 error:function(XMLHttpRequest, textStatus, errorThrown) {
10 $('#fancy-enable').attr('checked', false);
11 $('#fancy-disable').attr('checked', true);
12 $('#fancy-enable').attr('disabled', true);
13 $('#fancy-disable').attr('disabled', true);
14 $('#fancy-form_guide').text("Fancy URL support detection failed, disabling this option. Make sure you renamed htaccess.sample to .htaccess.");