Permalink
Browse files

Prefilled textbox added (bug id 1339)

  • Loading branch information...
1 parent 46e1c7f commit 92ff72590c1d25ef5224f1e707c8b608b820fb2c julmis committed May 8, 2004
Showing with 8 additions and 4 deletions.
  1. +2 −0 lib/editor/popups/link.php
  2. +6 −4 lib/editor/popups/link_std.php
@@ -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";
@@ -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 @@ function onCancel() {
<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>

0 comments on commit 92ff725

Please sign in to comment.