mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-16265, add a preview link under each icon.
This commit is contained in:
parent
a67af354cd
commit
8a1d4a467f
@ -641,6 +641,7 @@ function repository_get_client($context){
|
||||
$strsearch = get_string('search', 'repository');
|
||||
$strsearching = get_string('searching', 'repository');
|
||||
$strsubmit = get_string('submit', 'repository');
|
||||
$strpreview = get_string('preview', 'repository');
|
||||
$strupload = get_string('upload', 'repository');
|
||||
$struploading = get_string('uploading', 'repository');
|
||||
$css = <<<EOD
|
||||
@ -932,7 +933,9 @@ _client.viewthumb = function(ds){
|
||||
if(list[k].children){
|
||||
title.innerHTML = '<i><u>'+list[k].title+'</i></u>';
|
||||
} else {
|
||||
title.innerHTML = list[k].title;
|
||||
if(list[k].url)
|
||||
title.innerHTML = '<p><a target="_blank" href="'+list[k].url+'">$strpreview</a></p>';
|
||||
title.innerHTML += list[k].title;
|
||||
}
|
||||
title.className = 'label';
|
||||
el.appendChild(frame);
|
||||
|
Loading…
x
Reference in New Issue
Block a user