Lines Matching refs:_

13     (function(_){
24 _.popupImageStack = null;
30 _.showViewer = function() {
34 viewer = $('<div id="popupviewer"/>').click(_.hideViewer).appendTo('body');
44 … append(previous = $('<a class="previous"/>').click({'direction': -1}, _.skipImageInDirection)).
45 … append(next = $('<a class="next"/>').click({'direction': 1}, _.skipImageInDirection)).
46 append($('<a class="close"/>').addClass('visible').click(_.hideViewer)).
57 return _;
60 _.hideViewer = function(e, finalFunction) {
107 return _;
125 _.hideViewer();
130 _.presentViewerWithContent = function(e, popupData) {
150 _.hideViewer(e, _.presentViewerWithContent);
151 return _;
154 _.showViewer();
183 _.registerCloseHandler();
184_.resizePopup(popupData.width, popupData.height, additionalContent.innerHeight(), image, false, po…
222 _.propagateClickHandler($(this), popupData);
245 _.addGoogleOutboundTrackingInformation( $("div#"+randomID) );
253 _.registerCloseHandler();
255_.resizePopup(popupData.width, popupData.height, null, content, true, popupData.hasNextPrevious);
316 _.propagateClickHandler = function(node, popupData) {
344 _.hideViewer(e, _.presentViewerWithContent);
373_.resizePopup = function(width, height, additionalHeight, offsetElement, isPageContent, needsNextP…
454 _.handleNextAndPrevious(!isPageContent || needsNextPrevious);
455 return _;
458 _.skipImageInDirection = function(e)
464 var skipTo = $.inArray(content.current.get(0), _.popupImageStack) + e.data.direction;
465 skipTo = Math.min(_.popupImageStack.length-1, Math.max(skipTo, 0));
468 return _.skipToImage(skipTo, e.data.direction);
471 _.skipToImage = function(skipTo, inDirection)
473 if ( !$(_.popupImageStack[skipTo]).is(content.current) ) {
474 _.hideViewer(null, function() {
476 var nextItem = _.popupImageStack[skipTo];
481 return _;
484 _.isFirst = function() {
485 return _.popupImageStack.first().is(content.current);
488 _.isLast = function() {
489 return _.popupImageStack.last().is(content.current);
492 _.handleNextAndPrevious = function(currentIsImage) {
494 …if ( currentIsImage && _.popupImageStack && _.popupImageStack.size && _.popupImageStack.length > 1…
496 if ( _.isFirst() ) {
502 if ( _.isLast() ) {
515 return _;
518 _.registerCloseHandler = function () {
522 _.hideViewer(e);
529 _.init = function(popupImageStack) {
531 _.popupImageStack = $(popupImageStack || '*[data-popupviewer]').each(function(){
534 $(this).unbind('click').click(_.presentViewerWithContent);
540 return _;
543 _.addGoogleOutboundTrackingInformation = function( $findRoot ) {