From: dongsheng Date: Thu, 8 Jan 2009 06:15:39 +0000 (+0000) Subject: "MDL-13766, fixed bug of preview link" X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=caad70340cf6ff638c9361225ae927fec2f00581;p=moodle.git "MDL-13766, fixed bug of preview link" --- diff --git a/repository/javascript.php b/repository/javascript.php index 8b41184330..80f1b2aff5 100644 --- a/repository/javascript.php +++ b/repository/javascript.php @@ -548,8 +548,6 @@ _client.viewthumb = function(ds) { if(list[k].children) { title.innerHTML = ''+list[k].title+''; } else { - if(list[k].url) - title.innerHTML = '

$strpreview

'; title.innerHTML += ''+list[k].title+""; } if(list[k].thumbnail_width){ @@ -571,7 +569,11 @@ _client.viewthumb = function(ds) { link.appendChild(img); frame.appendChild(link); el.appendChild(frame); + if(list[k].url) { + el.innerHTML += '

$strpreview

'; + } el.appendChild(title); + panel.appendChild(el); if(list[k].children) { var folder = new YAHOO.util.Element(link.id);