2011-12-23 19:56:55 +00:00
|
|
|
$(function() {
|
2009-05-17 05:05:07 +01:00
|
|
|
$.ajax({url:'check-fancy',
|
|
|
|
type:'GET',
|
|
|
|
success:function(data, textStatus) {
|
2011-12-23 19:56:55 +00:00
|
|
|
$('#fancy-enable').prop('checked', true);
|
|
|
|
$('#fancy-disable').prop('checked', false);
|
2009-05-17 05:05:07 +01:00
|
|
|
$('#fancy-form_guide').text(data);
|
|
|
|
},
|
|
|
|
error:function(XMLHttpRequest, textStatus, errorThrown) {
|
2011-12-23 19:56:55 +00:00
|
|
|
$('#fancy-enable').prop('checked', false);
|
|
|
|
$('#fancy-disable').prop('checked', true);
|
|
|
|
$('#fancy-enable').prop('disabled', true);
|
|
|
|
$('#fancy-disable').prop('disabled', true);
|
2009-05-17 05:05:07 +01:00
|
|
|
$('#fancy-form_guide').text("Fancy URL support detection failed, disabling this option. Make sure you renamed htaccess.sample to .htaccess.");
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|