Changeset 26179 for main/trunk


Ignore:
Timestamp:
2012-09-12T16:46:51+12:00 (12 years ago)
Author:
sjm84
Message:

Changed the double click behaviour to go to a new page with the image on it instead of expanding it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/js/zoomer.js

    r25282 r26179  
    7474                }).dblclick(function ()
    7575                {
    76                     expand(smallArea, largeArea, wrap, zoomPort, mover, expansionSize, speedMultiplier);
     76                    image = largeArea.children("img");
     77                    document.location.href = image.attr("src");
    7778                });
    7879            };
    7980
    80             function expand(smallArea, largeArea, wrap, zoomPort, mover, expansionSize, speedMultiplier)
    81             {
    82                 smallArea.hide();
    83                 zoomPort.hide();
    84                 mover.fadeIn().data("origWidth", mover.width()).data("origHeight", mover.height()).css(
    85                 {
    86                     position: "static",
    87                     height: "auto",
    88                     width: "auto",
    89                     overflow: "visible"
    90                 });
    91                 wrap.css(
    92                 {
    93                     width: "100%"
    94                 }).unbind().dblclick(function ()
    95                 {
    96                     setup(smallArea, largeArea, wrap, zoomPort, mover, expansionSize, speedMultiplier);
    97                 });
    98                 largeArea.css(
    99                 {
    100                     left: 0,
    101                     top: 0,
    102                     width: largeArea.data("origWidth")
    103                 });
    104             };
    10581            mover.data("origWidth", mover.width()).data("origHeight", mover.height());
    10682            // Because the largeArea is often hidden, the width() function returns zero, take width from CSS instead 
Note: See TracChangeset for help on using the changeset viewer.