]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/index.rhtml
Fix some HTML validation issue.
[rails.git] / app / views / site / index.rhtml
index 4b187c09945b49f29cc0287bde715a8fd7cfa134..d0c9c2e296d22e4fa68739ffc7eeae6b33e81a1c 100644 (file)
@@ -87,6 +87,7 @@
     var bottom = getStyle( el, 'bottom' );
     var right = getStyle( el, 'right' );
     var width = el.old_width;
+    var height;
     if( ! width ) {
         width = getStyle( el, 'width' );
     }
@@ -98,7 +99,7 @@
     if( el.offsetParent.nodeName == 'BODY' || el.offsetParent.nodeName == 'HTML' ) {
       if( typeof( window.innerWidth ) == 'number' ) {
           pwidth = window.innerWidth;
-          height = window.innerHeight;
+          pheight = window.innerHeight;
       } else if( document.documentElement &&
           ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
           pwidth = document.documentElement.clientWidth;