]> git.mjollnir.org Git - moodle.git/commitdiff
Changes to charset and window return value is now "string".
authorjulmis <julmis>
Sat, 8 Nov 2003 14:39:52 +0000 (14:39 +0000)
committerjulmis <julmis>
Sat, 8 Nov 2003 14:39:52 +0000 (14:39 +0000)
lib/editor/popups/dlg_ins_smile.php

index eb678d4b5665b4454d1f61ffdaeb85d84e5abfd8..7f218014703134aa6b851cab3fceefb1f3d48988 100644 (file)
@@ -35,7 +35,7 @@
 ?>
 <html style="width: 320px; height: 350px;">
 <head>
-<meta http-equiv="content-type" content="text/html; charset=utf-8" />
+<meta http-equiv="content-type" content="text/html; <?php print_string("thischarset");?>" />
 <meta name=vs_targetSchema content="HTML 4.0">
 <meta name="GENERATOR" content="Microsoft Visual Studio 7.0">
 <LINK rel="stylesheet" type="text/css" href="dialog.css">
@@ -52,16 +52,12 @@ function attr(name, value) {
 }
 function insert(img,text) {
        if (img) {
-                       var src = img;
-                       var alt = text;
+                       var strImage = img;
+                       var strAlt = text;
+                       var imgString = "<img src=\"" + strImage +"\" alt=\"" + strAlt +"\" />";
        }
   // pass data back to the calling window
-  var fields = ["f_url","f_alt"];
-  var param = new Object();
-  param['f_url'] = src;
-  param['f_alt'] = alt;
-  __dlg_close(param);
+  __dlg_close(imgString);
   return false;
 };