Changeset 13489 for trunk/themes/default
- Timestamp:
- Mar 6, 2012, 9:43:18 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/themes/default/template/picture.tpl
r13478 r13489 21 21 {if count($current.unique_derivatives)>1} 22 22 {footer_script}{literal} 23 function changeImgSrc(url,typeSave,typeMap ,typeDisplay)23 function changeImgSrc(url,typeSave,typeMap) 24 24 { 25 25 var theImg = document.getElementById("theMainImage"); … … 28 28 theImg.removeAttribute("width");theImg.removeAttribute("height"); 29 29 theImg.src = url; 30 var elt = document.getElementById("derivativeSwitchLink");31 /* if (elt) elt.innerHTML = typeDisplay; */32 30 theImg.useMap = "#map"+typeMap; 33 31 } … … 54 52 <div id="derivativeSwitchBox" onclick="toggleDerivativeSwitchBox()" style="display:none"> 55 53 {foreach from=$current.unique_derivatives item=derivative key=derivative_type} 56 <a href="javascript:changeImgSrc('{$derivative->get_url()|@escape:javascript}','{$derivative_type}','{$derivative->get_type()}' ,'{$derivative->get_type()|@translate|@escape:javascript}')">{$derivative->get_type()|@translate} ({$derivative->get_size_hr()})</a><br>54 <a href="javascript:changeImgSrc('{$derivative->get_url()|@escape:javascript}','{$derivative_type}','{$derivative->get_type()}')">{$derivative->get_type()|@translate} ({$derivative->get_size_hr()})</a><br> 57 55 {/foreach} 58 56 {if isset($U_ORIGINAL)}
Note: See TracChangeset
for help on using the changeset viewer.