public/vendor/fancybox/jquery.fancybox.js
function () {
			var coming = F.coming;

			if (!coming || false === F.trigger('onCancel')) {
				return;
			}

			F.hideLoading();

			if (F.ajaxLoad) {
				F.ajaxLoad.abort();
			}

			F.ajaxLoad = null;

			if (F.imgPreload) {
				F.imgPreload.onload = F.imgPreload.onerror = null;
			}

			if (coming.wrap) {
				coming.wrap.stop(true, true).trigger('onReset').remove();
			}

			F.coming = null;

			// If the first item has been canceled, then clear everything
			if (!F.current) {
				F._afterZoomOut( coming );
			}
		}
function () {
			var coming = F.coming;

			if (!coming || false === F.trigger('onCancel')) {
				return;
			}

			F.hideLoading();

			if (F.ajaxLoad) {
				F.ajaxLoad.abort();
			}

			F.ajaxLoad = null;

			if (F.imgPreload) {
				F.imgPreload.onload = F.imgPreload.onerror = null;
			}

			if (coming.wrap) {
				coming.wrap.stop(true, true).trigger('onReset').remove();
			}

			F.coming = null;

			// If the first item has been canceled, then clear everything
			if (!F.current) {
				F._afterZoomOut( coming );
			}
		}
function ( ) { var coming = F . coming ; if ( ! coming || false === F . trigger ( 'onCancel' ) ) { return ; } F . hideLoading ( ) ; if ( F . ajaxLoad ) { F . ajaxLoad . abort ( ) ; } F . ajaxLoad = null ; if ( F . imgPreload ) { F . imgPreload . onload = F . imgPreload . onerror = null ; } if ( coming . wrap ) { coming . wrap . stop ( true , true ) . trigger ( 'onReset' ) . remove ( ) ; } F . coming = null ; // If the first item has been canceled, then clear everything if ( ! F . current ) { F . _afterZoomOut ( coming ) ; } }
Cancel image loading or abort ajax request
Cancel image loading or abort ajax request