]> git.mjollnir.org Git - moodle.git/commitdiff
Prefilled textbox added (bug id 1339)
authorjulmis <julmis>
Sat, 8 May 2004 18:23:18 +0000 (18:23 +0000)
committerjulmis <julmis>
Sat, 8 May 2004 18:23:18 +0000 (18:23 +0000)
lib/editor/popups/link.php
lib/editor/popups/link_std.php

index 6863c4a17323eade82cf46ba8cc5e4b0d684d75f..aef03b87ef25261532b8026a4e89ebf557c3603a 100644 (file)
@@ -49,6 +49,8 @@ function Init() {
         target_select.appendChild(opt);
         opt.selected = true;
       }
+  } else {
+      document.getElementById("f_href").value = "http://";
   }
   var opt = document.createElement("option");
   opt.value = "_other";
index f88b502f2fbe6f2320c781bd54406768b035ef76..3743c62647b6ec4c7519a59a062ddf6a517397b3 100644 (file)
@@ -1,8 +1,8 @@
 <?php // $Id$
-       include("../../../config.php");
-       
+    include("../../../config.php");
+
     $id = $_GET['id'];
-    
+
     require_variable($id);
 
     if (!$course = get_record("course", "id", $id)) {
@@ -49,6 +49,8 @@ function Init() {
         target_select.appendChild(opt);
         opt.selected = true;
       }
+  } else {
+      document.getElementById("f_href").value = "http://";
   }
   var opt = document.createElement("option");
   opt.value = "_other";
@@ -138,7 +140,7 @@ border-bottom: 1px solid black; letter-spacing: 2px;
     <td class="label"><?php print_string("linktarget","editor");?>:</td>
     <td><select id="f_target">
       <option value=""><?php print_string("linktargetnone","editor");?></option>
-         <option value="_blank"><?php print_string("linktargetblank","editor");?></option>
+      <option value="_blank"><?php print_string("linktargetblank","editor");?></option>
       <option value="_self"><?php print_string("linktargetself","editor");?></option>
       <option value="_top"><?php print_string("linktargettop","editor");?></option>
     </select>