]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - js/install.js
Modernize Profile_prefs to use Managed_DataObject functions
[quix0rs-gnu-social.git] / js / install.js
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 });
18