Added site path field to installer + fancy URL javascript auto-detection.

This commit is contained in:
Robin Millette
2009-05-17 00:05:07 -04:00
parent 6c4e26fe61
commit f3ea79a12a
3 changed files with 48 additions and 5 deletions

18
js/install.js Normal file
View File

@@ -0,0 +1,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.");
}
});
});