Installer: Fixed "RewriteBase /" bug and some improper Dynano use in formutils.js
authorDan
Sun, 20 Sep 2009 02:52:24 -0400
changeset 1116 220428d80925
parent 1115 b3c249d06990
child 1117 4d8ffe107a0d
Installer: Fixed "RewriteBase /" bug and some improper Dynano use in formutils.js
install/includes/js/formutils.js
install/includes/payload.php
--- a/install/includes/js/formutils.js	Sun Sep 20 02:51:54 2009 -0400
+++ b/install/includes/js/formutils.js	Sun Sep 20 02:52:24 2009 -0400
@@ -87,14 +87,14 @@
       if ( input.type == 'radio' )
       {
         var tr = getParentTR(input).parentNode.parentNode.parentNode;
-        var span_width = $(tr).Width() - 24;
+        var span_width = $dynano(tr).Width() - 24;
       }
       else
       {
-        var span_width = $(input).Width() - 24;
+        var span_width = $dynano(input).Width() - 24;
       }
-      var span_top = $(input).Top() + $(input).Height();
-      var span_left = $(input).Left();
+      var span_top = $dynano(input).Top() + $dynano(input).Height();
+      var span_left = $dynano(input).Left();
       hint.style.top = span_top + 'px';
       hint.style.left = span_left + 'px';
       hint.style.width = span_width + 'px';
@@ -141,10 +141,10 @@
   var hider = document.createElement('div');
   hider.style.position = 'absolute';
   hider.style.backgroundColor = '#FFFFFF';
-  hider.style.top = $(base).Top() + 'px';
-  hider.style.left = $(base).Left() + 'px';
-  hider.style.width = $(base).Width() + 'px';
-  hider.style.height = $(base).Height() + 'px';
+  hider.style.top = $dynano(base).Top() + 'px';
+  hider.style.left = $dynano(base).Left() + 'px';
+  hider.style.width = $dynano(base).Width() + 'px';
+  hider.style.height = $dynano(base).Height() + 'px';
   hider.style.backgroundPosition = 'center center';
   hider.style.backgroundImage = 'url(../images/loading-big.gif)';
   hider.style.backgroundRepeat = 'no-repeat';
--- a/install/includes/payload.php	Sun Sep 20 02:51:54 2009 -0400
+++ b/install/includes/payload.php	Sun Sep 20 02:52:24 2009 -0400
@@ -284,7 +284,7 @@
 RewriteEngine on
 
 # Required under some aliased setups
-RewriteBase $scriptpath
+RewriteBase {$scriptpath}/
 
 # Don't rewrite if the user requested a real directory or file
 RewriteCond %{REQUEST_FILENAME} !-f