mldonkey-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mldonkey-commits] Changes to mldonkey/src/daemon/driver/driverCommands.


From: mldonkey-commits
Subject: [Mldonkey-commits] Changes to mldonkey/src/daemon/driver/driverCommands.ml
Date: Sun, 07 Aug 2005 06:57:40 -0400

Index: mldonkey/src/daemon/driver/driverCommands.ml
diff -u mldonkey/src/daemon/driver/driverCommands.ml:1.77 
mldonkey/src/daemon/driver/driverCommands.ml:1.78
--- mldonkey/src/daemon/driver/driverCommands.ml:1.77   Fri Jul 29 20:42:48 2005
+++ mldonkey/src/daemon/driver/driverCommands.ml        Sun Aug  7 10:57:34 2005
@@ -489,7 +489,7 @@
         | _ ->
             if use_html_mods o then begin
 
-                Printf.bprintf buf "\\<script language=javascript\\>
+                Printf.bprintf buf "\\<script type=\\\"text/javascript\\\"\\>
 \\<!--
 function submitMessageForm() {
 var formID = document.getElementById(\\\"msgForm\\\")
@@ -981,20 +981,19 @@
         let buf = o.conn_buf in
         if use_html_mods o then
           begin
-
+            display_bw_stats := true;
             let refresh_delay = ref !!html_mods_bw_refresh_delay in
             if args <> [] then begin
                 let newrd = int_of_string (List.hd args) in
                 if newrd > 1 then refresh_delay := newrd;
               end;
-            Printf.bprintf buf "\\<meta http-equiv=\\\"refresh\\\" 
content=\\\"%d\\\"\\>" !refresh_delay;
 
             let dlkbs =
               (( (float_of_int !udp_download_rate) +. (float_of_int 
!control_download_rate)) /. 1024.0) in
             let ulkbs =
               (( (float_of_int !udp_upload_rate) +. (float_of_int 
!control_upload_rate)) /. 1024.0) in
 
-            Printf.bprintf buf "\\<div class=\\\"bw_stats\\\"\\>";
+            Printf.bprintf buf "\\</head\\>\\<body\\>\\<div 
class=\\\"bw_stats\\\"\\>";
             Printf.bprintf buf "\\<table class=\\\"bw_stats\\\" cellspacing=0 
cellpadding=0\\>\\<tr\\>";
             Printf.bprintf buf "\\<td\\>\\<table border=0 cellspacing=0 
cellpadding=0\\>\\<tr\\>";
 
@@ -1011,7 +1010,7 @@
 
             Printf.bprintf buf 
"\\</tr\\>\\</table\\>\\</td\\>\\</tr\\>\\</table\\>\\</div\\>";
 
-            Printf.bprintf buf "\\<script 
language=\\\"JavaScript\\\"\\>window.parent.document.title='(D:%.1f) (U:%.1f) | 
%s'\\</script\\>"
+            Printf.bprintf buf "\\<script 
type=\\\"text/javascript\\\"\\>window.parent.document.title='(D:%.1f) (U:%.1f) 
| %s'\\</script\\>"
               dlkbs ulkbs (CommonGlobals.version ())
           end
         else
@@ -1420,7 +1419,7 @@
         let buf = o.conn_buf in
         if use_html_mods o then begin
 
-            Printf.bprintf buf "\\<script language=javascript\\>
+            Printf.bprintf buf "\\<script type=\\\"text/javascript\\\"\\>
 \\<!--
 function pluginSubmit() {
 var formID = document.getElementById(\\\"pluginForm\\\");
@@ -1541,6 +1540,7 @@
                        strings_of_option html_mods_max_messages;
                        strings_of_option html_mods_bw_refresh_delay;
                        strings_of_option use_html_frames;
+                       strings_of_option html_frame_border;
                        strings_of_option html_checkbox_vd_file_list;
                        strings_of_option html_checkbox_search_file_list;
                        strings_of_option commands_frame_height;
@@ -2676,7 +2676,7 @@
             List.iter (fun line ->
                 Printf.bprintf buf "\\<tr class=\\\"dl-1\\\"\\>";
                 html_mods_td buf [ ("", "sr", line); ];
-                Printf.bprintf buf "\\</tr\\>\\";
+                Printf.bprintf buf "\\</tr\\>";
             ) lines;
             Printf.bprintf buf "\\</tr\\>\\</table\\>\\</div\\>\\</div\\>";
             Buffer.contents buf
@@ -2703,7 +2703,7 @@
 
     "reload_messages", Arg_none (fun o ->
         CommonMessages.load_message_file ();
-        "\\<script 
language=Javascript\\>top.window.location.reload();\\</script\\>"
+        "\\<script 
type=\\\"text/javascript\\\"\\>top.window.location.reload();\\</script\\>"
     ), ":\t\t\treload messages file";
 
     "log", Arg_none (fun o ->
@@ -2804,7 +2804,7 @@
             CommonMessages.colour_changer() ;
           end;
 
-        "\\<script 
language=Javascript\\>top.window.location.reload();\\</script\\>"
+        "\\<script 
type=\\\"text/javascript\\\"\\>top.window.location.reload();\\</script\\>"
     ), ":\t\t\t\ttoggle html_mods";
 
 
@@ -2832,7 +2832,7 @@
                 commands_frame_height =:= (snd 
!html_mods_styles.(!!html_mods_style));
                 CommonMessages.colour_changer ();
               end;
-            "\\<script 
language=Javascript\\>top.window.location.reload();\\</script\\>"
+            "\\<script 
type=\\\"text/javascript\\\"\\>top.window.location.reload();\\</script\\>"
           end
 
     ), ":\t\t\tselect html_mods_style <#>";
@@ -2900,7 +2900,7 @@
 (* html_mods =:= true;
             use_html_frames =:= true; *)
             html_mods_theme =:= List.hd args;
-            "\\<script 
language=Javascript\\>top.window.location.reload();\\</script\\>"
+            "\\<script 
type=\\\"text/javascript\\\"\\>top.window.location.reload();\\</script\\>"
           end
 
     ), "<theme>:\t\t\tselect html_theme";




reply via email to

[Prev in Thread] Current Thread [Next in Thread]