diff --git a/mod/resource/lib.php b/mod/resource/lib.php
index 867ce4d668f..b0c43bd6e16 100644
--- a/mod/resource/lib.php
+++ b/mod/resource/lib.php
@@ -335,7 +335,7 @@ function resource_get_coursemodule_info($coursemodule) {
if ($resource = get_record("resource", "id", $coursemodule->instance)) {
if (!empty($resource->popup)) {
- $info->extra = urlencode("target=\"resource$resource->id\" onClick=\"return ".
+ $info->extra = urlencode("target=\"resource$resource->id\" onclick=\"return ".
"openpopup('/mod/resource/view.php?inpopup=true&id=".
$coursemodule->id.
"','resource$resource->id','$resource->popup');\"");
diff --git a/mod/resource/type/file/file.html b/mod/resource/type/file/file.html
index d6410b7d519..1c4b5d6b50a 100644
--- a/mod/resource/type/file/file.html
+++ b/mod/resource/type/file/file.html
@@ -37,7 +37,7 @@
echo "reference\" />
";
button_to_popup_window ("/mod/resource/coursefiles.php?id=$form->course", "coursefiles", $strchooseafile, 500, 750, $strchooseafile);
echo "resource_websearch', 'websearch', 'menubar=1,location=1,directories=1,toolbar=1,scrollbars,resizable,width=800,height=600');\" />\n";
+ "onclick=\"return window.open('$CFG->resource_websearch', 'websearch', 'menubar=1,location=1,directories=1,toolbar=1,scrollbars,resizable,width=800,height=600');\" />\n";
?>
@@ -47,7 +47,7 @@
:
:
 
"; echo ''; diff --git a/mod/resource/type/html/html.html b/mod/resource/type/html/html.html index a008202930c..77c1b8cb0ee 100644 --- a/mod/resource/type/html/html.html +++ b/mod/resource/type/html/html.html @@ -45,7 +45,7 @@
:
 
"; echo ''; diff --git a/mod/resource/type/text/resource.class.php b/mod/resource/type/text/resource.class.php index eb87a41bbc8..9e6eec54fc2 100644 --- a/mod/resource/type/text/resource.class.php +++ b/mod/resource/type/text/resource.class.php @@ -118,7 +118,7 @@ function display() { print_simple_box(format_text($resource->summary, FORMAT_MOODLE, $formatoptions, $course->id), "center"); } - $link = "wwwroot/mod/resource/view.php?inpopup=true&id={$this->cm->id}\" target=\"resource{$resource->id}\" onClick=\"return openpopup('/mod/resource/view.php?inpopup=true&id={$this->cm->id}', 'resource{$resource->id}','{$resource->popup}');\">{$resource->name}"; + $link = "wwwroot/mod/resource/view.php?inpopup=true&id={$this->cm->id}\" target=\"resource{$resource->id}\" onclick=\"return openpopup('/mod/resource/view.php?inpopup=true&id={$this->cm->id}', 'resource{$resource->id}','{$resource->popup}');\">{$resource->name}"; echo "
 
"; echo ''; diff --git a/mod/resource/type/text/text.html b/mod/resource/type/text/text.html index 3fe80f48fde..235f2688d25 100644 --- a/mod/resource/type/text/text.html +++ b/mod/resource/type/text/text.html @@ -57,7 +57,7 @@
: