Ignore:
Timestamp:
2011-09-22T11:02:38+12:00 (13 years ago)
Author:
papitha
Message:

Zoom functionality added to Pei Jones Collection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-cols-dev/peijones/transform/pages/document.xsl

    r24629 r24630  
    125125                    newNote.Select();
    126126                }
    127                 window.onload = getNotes;
     127                window.onload = function(){getNotes(); readyImagesForZoom();};
    128128            </xsl:text>
    129129        </script>
     
    147147                <tr><td>
    148148                    <xsl:call-template name="viewOptions"/>
     149                    <table class="viewOptions"><tr>
     150                    <!-- Zoomer on/off button -->
     151                    <xsl:if test="/page/pageRequest/paramList/param[@name = 'zoom']/@value = 'on'">
     152                        <td>
     153                            <img src="sites/localsite/collect/peijones/images/zoom.png"/>
     154                            <input id="zoomOption" type="checkbox" class="optionCheckBox">
     155                                <xsl:choose>
     156                                    <xsl:when test="/page/pageRequest/paramList/param[@name = 'zoom']/@value = 'on'">
     157                                        <xsl:attribute name="onclick">
     158                                            <xsl:text>removeZoom();</xsl:text>
     159                                        </xsl:attribute>
     160                                        <xsl:attribute name="checked">true</xsl:attribute>
     161                                        <script type="text/javascript">function init(){readyImagesForZoom();} window.onload = init;</script>
     162                                    </xsl:when>
     163                                    <xsl:otherwise>
     164                                        <xsl:attribute name="onclick">
     165                                            <xsl:text>addZoom();</xsl:text>
     166                                        </xsl:attribute>
     167                                    </xsl:otherwise>
     168                                </xsl:choose>
     169                            </input>
     170                        </td>
     171                    </xsl:if>
     172                    </tr></table>
    149173                </td></tr>
    150174                <tr><td>
     
    212236
    213237        <div class="clear"><xsl:text> </xsl:text></div>
     238
    214239    </xsl:template>
    215    
    216240</xsl:stylesheet>
    217241
Note: See TracChangeset for help on using the changeset viewer.