put script and meta refresh in <head> in preferred size reloader (dillo)
authorGuillaume Cottenceau <gcottenc@gmail.com>
Tue, 5 Oct 2010 08:34:25 +0000 (10:34 +0200)
committerGuillaume Cottenceau <gcottenc@gmail.com>
Tue, 5 Oct 2010 08:34:25 +0000 (10:34 +0200)
lib/booh/html-merges.rb

index 0835033fca68a41c37e9b635bc7a82c4bd816dfd..713f43a75af18b3cc2932d899c1c727cc462e4d8 100644 (file)
@@ -125,8 +125,7 @@ EOF
 
 $preferred_size_reloader = <<'EOF'
 <html>
-    <body>
-    </body>
+    <head>
         <script language="JavaScript1.1" type="text/JavaScript">
 
 var sizes = new Array(~~all_sizes~~);
@@ -157,7 +156,10 @@ window.location.href = getPreferredSize();
 
         </script>
 
-        <meta http-equiv="refresh" content="0.1;url=thumbnails-~~default_size~~-nojs-0~~htmlsuffix~~">
+        <meta http-equiv="refresh" content="0.1;url=thumbnails-~~default_size~~-nojs-0~~htmlsuffix~~" />
+    </head>
+    <body>
+    </body>
 </html>
 EOF