install.js 744 B

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