summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorRobin Millette <millette@controlyourself.ca>2009-05-17 00:05:07 -0400
committerRobin Millette <millette@controlyourself.ca>2009-05-17 00:05:07 -0400
commitf3ea79a12a7bdf0d4efcd7eb706d25ae81b7fad9 (patch)
tree25969f470aebf06ae12fa8c587e463185cafd9da /js
parent6c4e26fe61a3c1cada4775a42a929eb884150b2d (diff)
Added site path field to installer + fancy URL javascript auto-detection.
Diffstat (limited to 'js')
-rw-r--r--js/install.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/js/install.js b/js/install.js
new file mode 100644
index 000000000..32a54111e
--- /dev/null
+++ b/js/install.js
@@ -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.");
+ }
+ });
+});
+