Changeset 13736 for trunk/themes


Ignore:
Timestamp:
Mar 26, 2012, 6:07:03 AM (13 years ago)
Author:
rvelices
Message:
  • small js fixes on index/picture
  • i.php does not use derivatives.dat file anymore (obsolete file)
  • better selection of derivatives in picture.php
  • larger sharpen real range in image.class.php
Location:
trunk/themes/default/template
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/themes/default/template/index.tpl

    r13729 r13736  
    88                        <span class="pwg-icon pwg-icon-sort">&nbsp;</span><span class="pwg-button-text">{'Sort order'|@translate}</span>
    99                </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)">
    1111                        <div class="switchBoxTitle">{'Sort order'|@translate}</div>
    1212                        {foreach from=$image_orders item=image_order name=loop}{if !$smarty.foreach.loop.first}<br>{/if}
     
    1919                </div>
    2020                {footer_script}{literal}
    21 function toggleSortOrderBox() {
     21function toggleSortOrderBox(forceHide) {
    2222        var elt = document.getElementById("sortOrderBox"),
    2323                ePos = document.getElementById("sortOrderLink");
    24         if (elt.style.display==="none") {
     24        if (!forceHide && elt.style.display==="none") {
    2525                elt.style.position = "absolute";
    2626                elt.style.left = ePos.offsetLeft+"px";
     
    3939                        <span class="pwg-icon pwg-icon-sizes">&nbsp;</span><span class="pwg-button-text">{'Photo sizes'|@translate}</span>
    4040                </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)">
    4242                        <div class="switchBoxTitle">{'Photo sizes'|@translate}</div>
    4343                        {foreach from=$image_derivatives item=image_derivative name=loop}{if !$smarty.foreach.loop.first}<br>{/if}
     
    5050                </div>
    5151                {footer_script}{literal}
    52 function toggleImageDerivativesBox() {
     52function toggleImageDerivativesBox(forceHide) {
    5353        var elt = document.getElementById("derivativeSwitchBox"),
    5454                ePos = document.getElementById("derivativeChooseLink");
    55         if (elt.style.display==="none") {
     55        if (!forceHide && elt.style.display==="none") {
    5656                elt.style.position = "absolute";
    5757                elt.style.left = ePos.offsetLeft+"px";
  • trunk/themes/default/template/picture.tpl

    r13729 r13736  
    5454{strip}<a id="derivativeSwitchLink" href="javascript:toggleDerivativeSwitchBox()" title="{'Photo sizes'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
    5555<span class="pwg-icon pwg-icon-sizes">&nbsp;</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()">
    5757<div class="switchBoxTitle">{'Photo sizes'|@translate}</div>
    5858{foreach from=$current.unique_derivatives item=derivative key=derivative_type}
Note: See TracChangeset for help on using the changeset viewer.