- Timestamp:
- 2012-09-12T16:46:51+12:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/js/zoomer.js
r25282 r26179 74 74 }).dblclick(function () 75 75 { 76 expand(smallArea, largeArea, wrap, zoomPort, mover, expansionSize, speedMultiplier); 76 image = largeArea.children("img"); 77 document.location.href = image.attr("src"); 77 78 }); 78 79 }; 79 80 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 };105 81 mover.data("origWidth", mover.width()).data("origHeight", mover.height()); 106 82 // 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.