X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=js%2Finstall.js;h=cc8a8d63cf53dab07cb9213bacbfae80110bd204;hb=1e37f374b38773da2b68cdcc28bbc72c89ea3eb1;hp=32a54111e28a046b7c6834b40afcd9754ae11003;hpb=003c63e587128c6d095386c563c2615c2ac245c2;p=quix0rs-gnu-social.git diff --git a/js/install.js b/js/install.js index 32a54111e2..cc8a8d63cf 100644 --- a/js/install.js +++ b/js/install.js @@ -1,16 +1,16 @@ -$(document).ready(function(){ +$(function() { $.ajax({url:'check-fancy', type:'GET', success:function(data, textStatus) { - $('#fancy-enable').attr('checked', true); - $('#fancy-disable').attr('checked', false); + $('#fancy-enable').prop('checked', true); + $('#fancy-disable').prop('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-enable').prop('checked', false); + $('#fancy-disable').prop('checked', true); + $('#fancy-enable').prop('disabled', true); + $('#fancy-disable').prop('disabled', true); $('#fancy-form_guide').text("Fancy URL support detection failed, disabling this option. Make sure you renamed htaccess.sample to .htaccess."); } });