Lines Matching +refs:_ +refs:e

13     (function(_){  argument
24 _.popupImageStack = null;
30 _.showViewer = function() {
34 viewer = $('<div id="popupviewer"/>').click(_.hideViewer).appendTo('body');
35 content = $('<div class="content"/>').click(function(e){e.stopPropagation()}); argument
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) { argument
102 finalFunction(e);
107 return _;
110 internal.globalKeyHandler = function(e) { argument
114 switch(e.keyCode) {
116 e.stopPropagation();
120 e.stopPropagation();
124 e.stopPropagation();
125 _.hideViewer();
130 _.presentViewerWithContent = function(e, popupData) { argument
132 … popupData = popupData || this.popupData || e.target.popupData; // Either as param or from object
146 e && e.preventDefault();
149 e.target.popupData = popupData;
150 _.hideViewer(e, _.presentViewerWithContent);
151 return _;
154 _.showViewer();
183 _.registerCloseHandler();
184_.resizePopup(popupData.width, popupData.height, additionalContent.innerHeight(), image, false, po…
221 _.propagateClickHandler($(this), popupData);
237 } catch (e) {
239 internal.log(e);
244 _.addGoogleOutboundTrackingInformation( $("div#"+randomID) );
252 _.registerCloseHandler();
254_.resizePopup(popupData.width, popupData.height, null, content, true, popupData.hasNextPrevious);
314 _.propagateClickHandler = function(node, popupData) {
340 $(this).bind('click', function(e){ argument
341 e.stopPropagation(); e.preventDefault();
342 _.hideViewer(e, _.presentViewerWithContent);
371_.resizePopup = function(width, height, additionalHeight, offsetElement, isPageContent, needsNextP…
452 _.handleNextAndPrevious(!isPageContent || needsNextPrevious);
453 return _;
456 _.skipImageInDirection = function(e) argument
458 e.stopPropagation();
462 var skipTo = $.inArray(content.current.get(0), _.popupImageStack) + e.data.direction;
463 skipTo = Math.min(_.popupImageStack.length-1, Math.max(skipTo, 0));
465 … internal.log("skipping " + (e.data.direction < 0 ? 'previous' : 'next') + ' ' + skipTo );
466 return _.skipToImage(skipTo, e.data.direction);
469 _.skipToImage = function(skipTo, inDirection)
471 if ( !$(_.popupImageStack[skipTo]).is(content.current) ) {
472 _.hideViewer(null, function() {
474 var nextItem = _.popupImageStack[skipTo];
479 return _;
482 _.isFirst = function() {
483 return _.popupImageStack.first().is(content.current);
486 _.isLast = function() {
487 return _.popupImageStack.last().is(content.current);
490 _.handleNextAndPrevious = function(currentIsImage) {
492 …if ( currentIsImage && _.popupImageStack && _.popupImageStack.size && _.popupImageStack.length > 1…
494 if ( _.isFirst() ) {
500 if ( _.isLast() ) {
513 return _;
516 _.registerCloseHandler = function () {
518 $(this).click(function(e){ argument
519 e && e.preventDefault();
520 _.hideViewer(e);
527 _.init = function(popupImageStack) {
529 _.popupImageStack = $(popupImageStack || '*[data-popupviewer]').each(function(){
532 $(this).unbind('click').click(_.presentViewerWithContent);
538 return _;
541 _.addGoogleOutboundTrackingInformation = function( $findRoot ) {
545 $findRoot.find('a.urlextern, a.interwiki').click(function (e) { argument
727 } catch (e) {
728 alert("Fatal Exception! Could not load page via popupviewer.\n" + e);