public/vendor/fancybox/jquery.fancybox.js
function (opts, obj) {
			var overlay = this.overlay;

			$('.fancybox-overlay').stop(true, true);

			if (!overlay) {
				this.create(opts);
			}

			if (opts.locked && this.fixed && obj.fixed) {
				if (!overlay) {
					this.margin = D.height() > W.height() ? $('html').css('margin-right').replace("px", "") : false;
				}

				obj.locked = this.overlay.append( obj.wrap );
				obj.fixed  = false;
			}

			if (opts.showEarly === true) {
				this.beforeShow.apply(this, arguments);
			}
		}
function (opts, obj) {
			var overlay = this.overlay;

			$('.fancybox-overlay').stop(true, true);

			if (!overlay) {
				this.create(opts);
			}

			if (opts.locked && this.fixed && obj.fixed) {
				if (!overlay) {
					this.margin = D.height() > W.height() ? $('html').css('margin-right').replace("px", "") : false;
				}

				obj.locked = this.overlay.append( obj.wrap );
				obj.fixed  = false;
			}

			if (opts.showEarly === true) {
				this.beforeShow.apply(this, arguments);
			}
		}
function ( opts , obj ) { var overlay = this . overlay ; $ ( '.fancybox-overlay' ) . stop ( true , true ) ; if ( ! overlay ) { this . create ( opts ) ; } if ( opts . locked && this . fixed && obj . fixed ) { if ( ! overlay ) { this . margin = D . height ( ) > W . height ( ) ? $ ( 'html' ) . css ( 'margin-right' ) . replace ( "px" , "" ) : false ; } obj . locked = this . overlay . append ( obj . wrap ) ; obj . fixed = false ; } if ( opts . showEarly === true ) { this . beforeShow . apply ( this , arguments ) ; } }
This is where we can manipulate DOM, because later it would cause iframes to reload
This is where we can manipulate DOM because later it would cause iframes to reload