Changeset 13736 for trunk/themes
- Timestamp:
- Mar 26, 2012, 6:07:03 AM (13 years ago)
- Location:
- trunk/themes/default/template
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/themes/default/template/index.tpl
r13729 r13736 8 8 <span class="pwg-icon pwg-icon-sort"> </span><span class="pwg-button-text">{'Sort order'|@translate}</span> 9 9 </a> 10 <div id="sortOrderBox" class="switchBox" style="display:none; text-align:left" onclick="toggleSortOrderBox()" onmouseout="e=event.toElement||event.relatedTarget;e.parentNode==this||e==this||toggleSortOrderBox( )">10 <div id="sortOrderBox" class="switchBox" style="display:none; text-align:left" onclick="toggleSortOrderBox()" onmouseout="e=event.toElement||event.relatedTarget;e.parentNode==this||e==this||toggleSortOrderBox(1)"> 11 11 <div class="switchBoxTitle">{'Sort order'|@translate}</div> 12 12 {foreach from=$image_orders item=image_order name=loop}{if !$smarty.foreach.loop.first}<br>{/if} … … 19 19 </div> 20 20 {footer_script}{literal} 21 function toggleSortOrderBox( ) {21 function toggleSortOrderBox(forceHide) { 22 22 var elt = document.getElementById("sortOrderBox"), 23 23 ePos = document.getElementById("sortOrderLink"); 24 if ( elt.style.display==="none") {24 if (!forceHide && elt.style.display==="none") { 25 25 elt.style.position = "absolute"; 26 26 elt.style.left = ePos.offsetLeft+"px"; … … 39 39 <span class="pwg-icon pwg-icon-sizes"> </span><span class="pwg-button-text">{'Photo sizes'|@translate}</span> 40 40 </a> 41 <div id="derivativeSwitchBox" class="switchBox" style="display:none; text-align:left" onclick="toggleImageDerivativesBox()" onmouseout="e=event.toElement||event.relatedTarget;e.parentNode==this||e==this||toggleImageDerivativesBox( )">41 <div id="derivativeSwitchBox" class="switchBox" style="display:none; text-align:left" onclick="toggleImageDerivativesBox()" onmouseout="e=event.toElement||event.relatedTarget;e.parentNode==this||e==this||toggleImageDerivativesBox(1)"> 42 42 <div class="switchBoxTitle">{'Photo sizes'|@translate}</div> 43 43 {foreach from=$image_derivatives item=image_derivative name=loop}{if !$smarty.foreach.loop.first}<br>{/if} … … 50 50 </div> 51 51 {footer_script}{literal} 52 function toggleImageDerivativesBox( ) {52 function toggleImageDerivativesBox(forceHide) { 53 53 var elt = document.getElementById("derivativeSwitchBox"), 54 54 ePos = document.getElementById("derivativeChooseLink"); 55 if ( elt.style.display==="none") {55 if (!forceHide && elt.style.display==="none") { 56 56 elt.style.position = "absolute"; 57 57 elt.style.left = ePos.offsetLeft+"px"; -
trunk/themes/default/template/picture.tpl
r13729 r13736 54 54 {strip}<a id="derivativeSwitchLink" href="javascript:toggleDerivativeSwitchBox()" title="{'Photo sizes'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 55 55 <span class="pwg-icon pwg-icon-sizes"> </span><span class="pwg-button-text">{'Photo sizes'|@translate}</span></a> 56 <div id="derivativeSwitchBox" class="switchBox" onclick="toggleDerivativeSwitchBox()" style="display:none" onmouseout="e=event.toElement||event.relatedTarget;e.parentNode==this||e ==this||toggleDerivativeSwitchBox()">56 <div id="derivativeSwitchBox" class="switchBox" onclick="toggleDerivativeSwitchBox()" style="display:none" onmouseout="e=event.toElement||event.relatedTarget;e.parentNode==this||e.parentNode.parentNode==this||e==this||toggleDerivativeSwitchBox()"> 57 57 <div class="switchBoxTitle">{'Photo sizes'|@translate}</div> 58 58 {foreach from=$current.unique_derivatives item=derivative key=derivative_type}
Note: See TracChangeset
for help on using the changeset viewer.