#### $r.translate("mat.media_selection_title") #if(!$media.getURI().startsWith("http")) #set ($isLocalMedia = true) #end
#if($isLocalMedia) #else #end | $r.translate("mat.media_select") #if($selectable_medias.size()>0) #else $r.translate("mat.no_mediafiles_found") #end
#if($isLocalMedia) #else #end | $r.translate("mat.media_uri") #if ($isLocalMedia) URL: #else #if ($media.getURI() && $media.getURI() != "") #set ($uri = $media.getURI()) #else #set ($uri = "http://") #end URI: #end #if($media_type=="video") $r.translate("mat.size"): x ($r.translate("mat.height") x $r.translate("mat.width")) #end
#if($media_type=="image" || $media_type=="video")
$r.translate("mat.preview") |
#if($isLocalMedia && $media.getURI()) #elseif($media.getURI() && $media.getURI() != "") #elseif($selectable_medias.size()>0) #else #end
#end
#### $r.translate("mat.upload_media")
#if($media_type=="image") (*.gif, *.jpg, *.png) #else (*.mov, *.qt, *.rm, *.swf, *.wma, *.wmv, *avi, *.mpeg, *.mpg, *.mp3) #end
$r.render("cancel")

## workaround for IE bug http://bugs.olat.org/jira/browse/OLAT-1299 ## FIXME:fj:c only apply in case of IE. ## Used to be:
## But this does not work in ajax mode (when components have been replaced in the dom), since document.write then writes to position 0 causing a white screen