mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 01:46:45 +02:00
MDL-31015 File/URL resource 'Open' and 'Force download' options should work consistently
This commit is contained in:
parent
216f6d8e9d
commit
68828cc431
4 changed files with 23 additions and 31 deletions
|
@ -286,9 +286,6 @@ function url_get_coursemodule_info($coursemodule) {
|
|||
$fullurl = "$CFG->wwwroot/mod/url/view.php?id=$coursemodule->id&redirect=1";
|
||||
$info->onclick = "window.open('$fullurl'); return false;";
|
||||
|
||||
} else if ($display == RESOURCELIB_DISPLAY_OPEN) {
|
||||
$fullurl = "$CFG->wwwroot/mod/url/view.php?id=$coursemodule->id&redirect=1";
|
||||
$info->onclick = "window.location.href ='$fullurl';return false;";
|
||||
}
|
||||
|
||||
if ($coursemodule->showdescription) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue