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