Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-inclu.../js/jquery/ui
File: core.js
return cachedScrollbarWidth;
[500] Fix | Delete
}
[501] Fix | Delete
var w1, w2,
[502] Fix | Delete
div = $( "<div style=" +
[503] Fix | Delete
"'display:block;position:absolute;width:200px;height:200px;overflow:hidden;'>" +
[504] Fix | Delete
"<div style='height:300px;width:auto;'></div></div>" ),
[505] Fix | Delete
innerDiv = div.children()[ 0 ];
[506] Fix | Delete
[507] Fix | Delete
$( "body" ).append( div );
[508] Fix | Delete
w1 = innerDiv.offsetWidth;
[509] Fix | Delete
div.css( "overflow", "scroll" );
[510] Fix | Delete
[511] Fix | Delete
w2 = innerDiv.offsetWidth;
[512] Fix | Delete
[513] Fix | Delete
if ( w1 === w2 ) {
[514] Fix | Delete
w2 = div[ 0 ].clientWidth;
[515] Fix | Delete
}
[516] Fix | Delete
[517] Fix | Delete
div.remove();
[518] Fix | Delete
[519] Fix | Delete
return ( cachedScrollbarWidth = w1 - w2 );
[520] Fix | Delete
},
[521] Fix | Delete
getScrollInfo: function( within ) {
[522] Fix | Delete
var overflowX = within.isWindow || within.isDocument ? "" :
[523] Fix | Delete
within.element.css( "overflow-x" ),
[524] Fix | Delete
overflowY = within.isWindow || within.isDocument ? "" :
[525] Fix | Delete
within.element.css( "overflow-y" ),
[526] Fix | Delete
hasOverflowX = overflowX === "scroll" ||
[527] Fix | Delete
( overflowX === "auto" && within.width < within.element[ 0 ].scrollWidth ),
[528] Fix | Delete
hasOverflowY = overflowY === "scroll" ||
[529] Fix | Delete
( overflowY === "auto" && within.height < within.element[ 0 ].scrollHeight );
[530] Fix | Delete
return {
[531] Fix | Delete
width: hasOverflowY ? $.position.scrollbarWidth() : 0,
[532] Fix | Delete
height: hasOverflowX ? $.position.scrollbarWidth() : 0
[533] Fix | Delete
};
[534] Fix | Delete
},
[535] Fix | Delete
getWithinInfo: function( element ) {
[536] Fix | Delete
var withinElement = $( element || window ),
[537] Fix | Delete
isElemWindow = isWindow( withinElement[ 0 ] ),
[538] Fix | Delete
isDocument = !!withinElement[ 0 ] && withinElement[ 0 ].nodeType === 9,
[539] Fix | Delete
hasOffset = !isElemWindow && !isDocument;
[540] Fix | Delete
return {
[541] Fix | Delete
element: withinElement,
[542] Fix | Delete
isWindow: isElemWindow,
[543] Fix | Delete
isDocument: isDocument,
[544] Fix | Delete
offset: hasOffset ? $( element ).offset() : { left: 0, top: 0 },
[545] Fix | Delete
scrollLeft: withinElement.scrollLeft(),
[546] Fix | Delete
scrollTop: withinElement.scrollTop(),
[547] Fix | Delete
width: withinElement.outerWidth(),
[548] Fix | Delete
height: withinElement.outerHeight()
[549] Fix | Delete
};
[550] Fix | Delete
}
[551] Fix | Delete
};
[552] Fix | Delete
[553] Fix | Delete
$.fn.position = function( options ) {
[554] Fix | Delete
if ( !options || !options.of ) {
[555] Fix | Delete
return _position.apply( this, arguments );
[556] Fix | Delete
}
[557] Fix | Delete
[558] Fix | Delete
// Make a copy, we don't want to modify arguments
[559] Fix | Delete
options = $.extend( {}, options );
[560] Fix | Delete
[561] Fix | Delete
var atOffset, targetWidth, targetHeight, targetOffset, basePosition, dimensions,
[562] Fix | Delete
[563] Fix | Delete
// Make sure string options are treated as CSS selectors
[564] Fix | Delete
target = typeof options.of === "string" ?
[565] Fix | Delete
$( document ).find( options.of ) :
[566] Fix | Delete
$( options.of ),
[567] Fix | Delete
[568] Fix | Delete
within = $.position.getWithinInfo( options.within ),
[569] Fix | Delete
scrollInfo = $.position.getScrollInfo( within ),
[570] Fix | Delete
collision = ( options.collision || "flip" ).split( " " ),
[571] Fix | Delete
offsets = {};
[572] Fix | Delete
[573] Fix | Delete
dimensions = getDimensions( target );
[574] Fix | Delete
if ( target[ 0 ].preventDefault ) {
[575] Fix | Delete
[576] Fix | Delete
// Force left top to allow flipping
[577] Fix | Delete
options.at = "left top";
[578] Fix | Delete
}
[579] Fix | Delete
targetWidth = dimensions.width;
[580] Fix | Delete
targetHeight = dimensions.height;
[581] Fix | Delete
targetOffset = dimensions.offset;
[582] Fix | Delete
[583] Fix | Delete
// Clone to reuse original targetOffset later
[584] Fix | Delete
basePosition = $.extend( {}, targetOffset );
[585] Fix | Delete
[586] Fix | Delete
// Force my and at to have valid horizontal and vertical positions
[587] Fix | Delete
// if a value is missing or invalid, it will be converted to center
[588] Fix | Delete
$.each( [ "my", "at" ], function() {
[589] Fix | Delete
var pos = ( options[ this ] || "" ).split( " " ),
[590] Fix | Delete
horizontalOffset,
[591] Fix | Delete
verticalOffset;
[592] Fix | Delete
[593] Fix | Delete
if ( pos.length === 1 ) {
[594] Fix | Delete
pos = rhorizontal.test( pos[ 0 ] ) ?
[595] Fix | Delete
pos.concat( [ "center" ] ) :
[596] Fix | Delete
rvertical.test( pos[ 0 ] ) ?
[597] Fix | Delete
[ "center" ].concat( pos ) :
[598] Fix | Delete
[ "center", "center" ];
[599] Fix | Delete
}
[600] Fix | Delete
pos[ 0 ] = rhorizontal.test( pos[ 0 ] ) ? pos[ 0 ] : "center";
[601] Fix | Delete
pos[ 1 ] = rvertical.test( pos[ 1 ] ) ? pos[ 1 ] : "center";
[602] Fix | Delete
[603] Fix | Delete
// Calculate offsets
[604] Fix | Delete
horizontalOffset = roffset.exec( pos[ 0 ] );
[605] Fix | Delete
verticalOffset = roffset.exec( pos[ 1 ] );
[606] Fix | Delete
offsets[ this ] = [
[607] Fix | Delete
horizontalOffset ? horizontalOffset[ 0 ] : 0,
[608] Fix | Delete
verticalOffset ? verticalOffset[ 0 ] : 0
[609] Fix | Delete
];
[610] Fix | Delete
[611] Fix | Delete
// Reduce to just the positions without the offsets
[612] Fix | Delete
options[ this ] = [
[613] Fix | Delete
rposition.exec( pos[ 0 ] )[ 0 ],
[614] Fix | Delete
rposition.exec( pos[ 1 ] )[ 0 ]
[615] Fix | Delete
];
[616] Fix | Delete
} );
[617] Fix | Delete
[618] Fix | Delete
// Normalize collision option
[619] Fix | Delete
if ( collision.length === 1 ) {
[620] Fix | Delete
collision[ 1 ] = collision[ 0 ];
[621] Fix | Delete
}
[622] Fix | Delete
[623] Fix | Delete
if ( options.at[ 0 ] === "right" ) {
[624] Fix | Delete
basePosition.left += targetWidth;
[625] Fix | Delete
} else if ( options.at[ 0 ] === "center" ) {
[626] Fix | Delete
basePosition.left += targetWidth / 2;
[627] Fix | Delete
}
[628] Fix | Delete
[629] Fix | Delete
if ( options.at[ 1 ] === "bottom" ) {
[630] Fix | Delete
basePosition.top += targetHeight;
[631] Fix | Delete
} else if ( options.at[ 1 ] === "center" ) {
[632] Fix | Delete
basePosition.top += targetHeight / 2;
[633] Fix | Delete
}
[634] Fix | Delete
[635] Fix | Delete
atOffset = getOffsets( offsets.at, targetWidth, targetHeight );
[636] Fix | Delete
basePosition.left += atOffset[ 0 ];
[637] Fix | Delete
basePosition.top += atOffset[ 1 ];
[638] Fix | Delete
[639] Fix | Delete
return this.each( function() {
[640] Fix | Delete
var collisionPosition, using,
[641] Fix | Delete
elem = $( this ),
[642] Fix | Delete
elemWidth = elem.outerWidth(),
[643] Fix | Delete
elemHeight = elem.outerHeight(),
[644] Fix | Delete
marginLeft = parseCss( this, "marginLeft" ),
[645] Fix | Delete
marginTop = parseCss( this, "marginTop" ),
[646] Fix | Delete
collisionWidth = elemWidth + marginLeft + parseCss( this, "marginRight" ) +
[647] Fix | Delete
scrollInfo.width,
[648] Fix | Delete
collisionHeight = elemHeight + marginTop + parseCss( this, "marginBottom" ) +
[649] Fix | Delete
scrollInfo.height,
[650] Fix | Delete
position = $.extend( {}, basePosition ),
[651] Fix | Delete
myOffset = getOffsets( offsets.my, elem.outerWidth(), elem.outerHeight() );
[652] Fix | Delete
[653] Fix | Delete
if ( options.my[ 0 ] === "right" ) {
[654] Fix | Delete
position.left -= elemWidth;
[655] Fix | Delete
} else if ( options.my[ 0 ] === "center" ) {
[656] Fix | Delete
position.left -= elemWidth / 2;
[657] Fix | Delete
}
[658] Fix | Delete
[659] Fix | Delete
if ( options.my[ 1 ] === "bottom" ) {
[660] Fix | Delete
position.top -= elemHeight;
[661] Fix | Delete
} else if ( options.my[ 1 ] === "center" ) {
[662] Fix | Delete
position.top -= elemHeight / 2;
[663] Fix | Delete
}
[664] Fix | Delete
[665] Fix | Delete
position.left += myOffset[ 0 ];
[666] Fix | Delete
position.top += myOffset[ 1 ];
[667] Fix | Delete
[668] Fix | Delete
collisionPosition = {
[669] Fix | Delete
marginLeft: marginLeft,
[670] Fix | Delete
marginTop: marginTop
[671] Fix | Delete
};
[672] Fix | Delete
[673] Fix | Delete
$.each( [ "left", "top" ], function( i, dir ) {
[674] Fix | Delete
if ( $.ui.position[ collision[ i ] ] ) {
[675] Fix | Delete
$.ui.position[ collision[ i ] ][ dir ]( position, {
[676] Fix | Delete
targetWidth: targetWidth,
[677] Fix | Delete
targetHeight: targetHeight,
[678] Fix | Delete
elemWidth: elemWidth,
[679] Fix | Delete
elemHeight: elemHeight,
[680] Fix | Delete
collisionPosition: collisionPosition,
[681] Fix | Delete
collisionWidth: collisionWidth,
[682] Fix | Delete
collisionHeight: collisionHeight,
[683] Fix | Delete
offset: [ atOffset[ 0 ] + myOffset[ 0 ], atOffset [ 1 ] + myOffset[ 1 ] ],
[684] Fix | Delete
my: options.my,
[685] Fix | Delete
at: options.at,
[686] Fix | Delete
within: within,
[687] Fix | Delete
elem: elem
[688] Fix | Delete
} );
[689] Fix | Delete
}
[690] Fix | Delete
} );
[691] Fix | Delete
[692] Fix | Delete
if ( options.using ) {
[693] Fix | Delete
[694] Fix | Delete
// Adds feedback as second argument to using callback, if present
[695] Fix | Delete
using = function( props ) {
[696] Fix | Delete
var left = targetOffset.left - position.left,
[697] Fix | Delete
right = left + targetWidth - elemWidth,
[698] Fix | Delete
top = targetOffset.top - position.top,
[699] Fix | Delete
bottom = top + targetHeight - elemHeight,
[700] Fix | Delete
feedback = {
[701] Fix | Delete
target: {
[702] Fix | Delete
element: target,
[703] Fix | Delete
left: targetOffset.left,
[704] Fix | Delete
top: targetOffset.top,
[705] Fix | Delete
width: targetWidth,
[706] Fix | Delete
height: targetHeight
[707] Fix | Delete
},
[708] Fix | Delete
element: {
[709] Fix | Delete
element: elem,
[710] Fix | Delete
left: position.left,
[711] Fix | Delete
top: position.top,
[712] Fix | Delete
width: elemWidth,
[713] Fix | Delete
height: elemHeight
[714] Fix | Delete
},
[715] Fix | Delete
horizontal: right < 0 ? "left" : left > 0 ? "right" : "center",
[716] Fix | Delete
vertical: bottom < 0 ? "top" : top > 0 ? "bottom" : "middle"
[717] Fix | Delete
};
[718] Fix | Delete
if ( targetWidth < elemWidth && abs( left + right ) < targetWidth ) {
[719] Fix | Delete
feedback.horizontal = "center";
[720] Fix | Delete
}
[721] Fix | Delete
if ( targetHeight < elemHeight && abs( top + bottom ) < targetHeight ) {
[722] Fix | Delete
feedback.vertical = "middle";
[723] Fix | Delete
}
[724] Fix | Delete
if ( max( abs( left ), abs( right ) ) > max( abs( top ), abs( bottom ) ) ) {
[725] Fix | Delete
feedback.important = "horizontal";
[726] Fix | Delete
} else {
[727] Fix | Delete
feedback.important = "vertical";
[728] Fix | Delete
}
[729] Fix | Delete
options.using.call( this, props, feedback );
[730] Fix | Delete
};
[731] Fix | Delete
}
[732] Fix | Delete
[733] Fix | Delete
elem.offset( $.extend( position, { using: using } ) );
[734] Fix | Delete
} );
[735] Fix | Delete
};
[736] Fix | Delete
[737] Fix | Delete
$.ui.position = {
[738] Fix | Delete
fit: {
[739] Fix | Delete
left: function( position, data ) {
[740] Fix | Delete
var within = data.within,
[741] Fix | Delete
withinOffset = within.isWindow ? within.scrollLeft : within.offset.left,
[742] Fix | Delete
outerWidth = within.width,
[743] Fix | Delete
collisionPosLeft = position.left - data.collisionPosition.marginLeft,
[744] Fix | Delete
overLeft = withinOffset - collisionPosLeft,
[745] Fix | Delete
overRight = collisionPosLeft + data.collisionWidth - outerWidth - withinOffset,
[746] Fix | Delete
newOverRight;
[747] Fix | Delete
[748] Fix | Delete
// Element is wider than within
[749] Fix | Delete
if ( data.collisionWidth > outerWidth ) {
[750] Fix | Delete
[751] Fix | Delete
// Element is initially over the left side of within
[752] Fix | Delete
if ( overLeft > 0 && overRight <= 0 ) {
[753] Fix | Delete
newOverRight = position.left + overLeft + data.collisionWidth - outerWidth -
[754] Fix | Delete
withinOffset;
[755] Fix | Delete
position.left += overLeft - newOverRight;
[756] Fix | Delete
[757] Fix | Delete
// Element is initially over right side of within
[758] Fix | Delete
} else if ( overRight > 0 && overLeft <= 0 ) {
[759] Fix | Delete
position.left = withinOffset;
[760] Fix | Delete
[761] Fix | Delete
// Element is initially over both left and right sides of within
[762] Fix | Delete
} else {
[763] Fix | Delete
if ( overLeft > overRight ) {
[764] Fix | Delete
position.left = withinOffset + outerWidth - data.collisionWidth;
[765] Fix | Delete
} else {
[766] Fix | Delete
position.left = withinOffset;
[767] Fix | Delete
}
[768] Fix | Delete
}
[769] Fix | Delete
[770] Fix | Delete
// Too far left -> align with left edge
[771] Fix | Delete
} else if ( overLeft > 0 ) {
[772] Fix | Delete
position.left += overLeft;
[773] Fix | Delete
[774] Fix | Delete
// Too far right -> align with right edge
[775] Fix | Delete
} else if ( overRight > 0 ) {
[776] Fix | Delete
position.left -= overRight;
[777] Fix | Delete
[778] Fix | Delete
// Adjust based on position and margin
[779] Fix | Delete
} else {
[780] Fix | Delete
position.left = max( position.left - collisionPosLeft, position.left );
[781] Fix | Delete
}
[782] Fix | Delete
},
[783] Fix | Delete
top: function( position, data ) {
[784] Fix | Delete
var within = data.within,
[785] Fix | Delete
withinOffset = within.isWindow ? within.scrollTop : within.offset.top,
[786] Fix | Delete
outerHeight = data.within.height,
[787] Fix | Delete
collisionPosTop = position.top - data.collisionPosition.marginTop,
[788] Fix | Delete
overTop = withinOffset - collisionPosTop,
[789] Fix | Delete
overBottom = collisionPosTop + data.collisionHeight - outerHeight - withinOffset,
[790] Fix | Delete
newOverBottom;
[791] Fix | Delete
[792] Fix | Delete
// Element is taller than within
[793] Fix | Delete
if ( data.collisionHeight > outerHeight ) {
[794] Fix | Delete
[795] Fix | Delete
// Element is initially over the top of within
[796] Fix | Delete
if ( overTop > 0 && overBottom <= 0 ) {
[797] Fix | Delete
newOverBottom = position.top + overTop + data.collisionHeight - outerHeight -
[798] Fix | Delete
withinOffset;
[799] Fix | Delete
position.top += overTop - newOverBottom;
[800] Fix | Delete
[801] Fix | Delete
// Element is initially over bottom of within
[802] Fix | Delete
} else if ( overBottom > 0 && overTop <= 0 ) {
[803] Fix | Delete
position.top = withinOffset;
[804] Fix | Delete
[805] Fix | Delete
// Element is initially over both top and bottom of within
[806] Fix | Delete
} else {
[807] Fix | Delete
if ( overTop > overBottom ) {
[808] Fix | Delete
position.top = withinOffset + outerHeight - data.collisionHeight;
[809] Fix | Delete
} else {
[810] Fix | Delete
position.top = withinOffset;
[811] Fix | Delete
}
[812] Fix | Delete
}
[813] Fix | Delete
[814] Fix | Delete
// Too far up -> align with top
[815] Fix | Delete
} else if ( overTop > 0 ) {
[816] Fix | Delete
position.top += overTop;
[817] Fix | Delete
[818] Fix | Delete
// Too far down -> align with bottom edge
[819] Fix | Delete
} else if ( overBottom > 0 ) {
[820] Fix | Delete
position.top -= overBottom;
[821] Fix | Delete
[822] Fix | Delete
// Adjust based on position and margin
[823] Fix | Delete
} else {
[824] Fix | Delete
position.top = max( position.top - collisionPosTop, position.top );
[825] Fix | Delete
}
[826] Fix | Delete
}
[827] Fix | Delete
},
[828] Fix | Delete
flip: {
[829] Fix | Delete
left: function( position, data ) {
[830] Fix | Delete
var within = data.within,
[831] Fix | Delete
withinOffset = within.offset.left + within.scrollLeft,
[832] Fix | Delete
outerWidth = within.width,
[833] Fix | Delete
offsetLeft = within.isWindow ? within.scrollLeft : within.offset.left,
[834] Fix | Delete
collisionPosLeft = position.left - data.collisionPosition.marginLeft,
[835] Fix | Delete
overLeft = collisionPosLeft - offsetLeft,
[836] Fix | Delete
overRight = collisionPosLeft + data.collisionWidth - outerWidth - offsetLeft,
[837] Fix | Delete
myOffset = data.my[ 0 ] === "left" ?
[838] Fix | Delete
-data.elemWidth :
[839] Fix | Delete
data.my[ 0 ] === "right" ?
[840] Fix | Delete
data.elemWidth :
[841] Fix | Delete
0,
[842] Fix | Delete
atOffset = data.at[ 0 ] === "left" ?
[843] Fix | Delete
data.targetWidth :
[844] Fix | Delete
data.at[ 0 ] === "right" ?
[845] Fix | Delete
-data.targetWidth :
[846] Fix | Delete
0,
[847] Fix | Delete
offset = -2 * data.offset[ 0 ],
[848] Fix | Delete
newOverRight,
[849] Fix | Delete
newOverLeft;
[850] Fix | Delete
[851] Fix | Delete
if ( overLeft < 0 ) {
[852] Fix | Delete
newOverRight = position.left + myOffset + atOffset + offset + data.collisionWidth -
[853] Fix | Delete
outerWidth - withinOffset;
[854] Fix | Delete
if ( newOverRight < 0 || newOverRight < abs( overLeft ) ) {
[855] Fix | Delete
position.left += myOffset + atOffset + offset;
[856] Fix | Delete
}
[857] Fix | Delete
} else if ( overRight > 0 ) {
[858] Fix | Delete
newOverLeft = position.left - data.collisionPosition.marginLeft + myOffset +
[859] Fix | Delete
atOffset + offset - offsetLeft;
[860] Fix | Delete
if ( newOverLeft > 0 || abs( newOverLeft ) < overRight ) {
[861] Fix | Delete
position.left += myOffset + atOffset + offset;
[862] Fix | Delete
}
[863] Fix | Delete
}
[864] Fix | Delete
},
[865] Fix | Delete
top: function( position, data ) {
[866] Fix | Delete
var within = data.within,
[867] Fix | Delete
withinOffset = within.offset.top + within.scrollTop,
[868] Fix | Delete
outerHeight = within.height,
[869] Fix | Delete
offsetTop = within.isWindow ? within.scrollTop : within.offset.top,
[870] Fix | Delete
collisionPosTop = position.top - data.collisionPosition.marginTop,
[871] Fix | Delete
overTop = collisionPosTop - offsetTop,
[872] Fix | Delete
overBottom = collisionPosTop + data.collisionHeight - outerHeight - offsetTop,
[873] Fix | Delete
top = data.my[ 1 ] === "top",
[874] Fix | Delete
myOffset = top ?
[875] Fix | Delete
-data.elemHeight :
[876] Fix | Delete
data.my[ 1 ] === "bottom" ?
[877] Fix | Delete
data.elemHeight :
[878] Fix | Delete
0,
[879] Fix | Delete
atOffset = data.at[ 1 ] === "top" ?
[880] Fix | Delete
data.targetHeight :
[881] Fix | Delete
data.at[ 1 ] === "bottom" ?
[882] Fix | Delete
-data.targetHeight :
[883] Fix | Delete
0,
[884] Fix | Delete
offset = -2 * data.offset[ 1 ],
[885] Fix | Delete
newOverTop,
[886] Fix | Delete
newOverBottom;
[887] Fix | Delete
if ( overTop < 0 ) {
[888] Fix | Delete
newOverBottom = position.top + myOffset + atOffset + offset + data.collisionHeight -
[889] Fix | Delete
outerHeight - withinOffset;
[890] Fix | Delete
if ( newOverBottom < 0 || newOverBottom < abs( overTop ) ) {
[891] Fix | Delete
position.top += myOffset + atOffset + offset;
[892] Fix | Delete
}
[893] Fix | Delete
} else if ( overBottom > 0 ) {
[894] Fix | Delete
newOverTop = position.top - data.collisionPosition.marginTop + myOffset + atOffset +
[895] Fix | Delete
offset - offsetTop;
[896] Fix | Delete
if ( newOverTop > 0 || abs( newOverTop ) < overBottom ) {
[897] Fix | Delete
position.top += myOffset + atOffset + offset;
[898] Fix | Delete
}
[899] Fix | Delete
}
[900] Fix | Delete
}
[901] Fix | Delete
},
[902] Fix | Delete
flipfit: {
[903] Fix | Delete
left: function() {
[904] Fix | Delete
$.ui.position.flip.left.apply( this, arguments );
[905] Fix | Delete
$.ui.position.fit.left.apply( this, arguments );
[906] Fix | Delete
},
[907] Fix | Delete
top: function() {
[908] Fix | Delete
$.ui.position.flip.top.apply( this, arguments );
[909] Fix | Delete
$.ui.position.fit.top.apply( this, arguments );
[910] Fix | Delete
}
[911] Fix | Delete
}
[912] Fix | Delete
};
[913] Fix | Delete
[914] Fix | Delete
} )();
[915] Fix | Delete
[916] Fix | Delete
// Source: safe-active-element.js
[917] Fix | Delete
$.ui.safeActiveElement = function( document ) {
[918] Fix | Delete
var activeElement;
[919] Fix | Delete
[920] Fix | Delete
// Support: IE 9 only
[921] Fix | Delete
// IE9 throws an "Unspecified error" accessing document.activeElement from an <iframe>
[922] Fix | Delete
try {
[923] Fix | Delete
activeElement = document.activeElement;
[924] Fix | Delete
} catch ( error ) {
[925] Fix | Delete
activeElement = document.body;
[926] Fix | Delete
}
[927] Fix | Delete
[928] Fix | Delete
// Support: IE 9 - 11 only
[929] Fix | Delete
// IE may return null instead of an element
[930] Fix | Delete
// Interestingly, this only seems to occur when NOT in an iframe
[931] Fix | Delete
if ( !activeElement ) {
[932] Fix | Delete
activeElement = document.body;
[933] Fix | Delete
}
[934] Fix | Delete
[935] Fix | Delete
// Support: IE 11 only
[936] Fix | Delete
// IE11 returns a seemingly empty object in some cases when accessing
[937] Fix | Delete
// document.activeElement from an <iframe>
[938] Fix | Delete
if ( !activeElement.nodeName ) {
[939] Fix | Delete
activeElement = document.body;
[940] Fix | Delete
}
[941] Fix | Delete
[942] Fix | Delete
return activeElement;
[943] Fix | Delete
};
[944] Fix | Delete
[945] Fix | Delete
// Source: safe-blur.js
[946] Fix | Delete
$.ui.safeBlur = function( element ) {
[947] Fix | Delete
[948] Fix | Delete
// Support: IE9 - 10 only
[949] Fix | Delete
// If the <body> is blurred, IE will switch windows, see #9420
[950] Fix | Delete
if ( element && element.nodeName.toLowerCase() !== "body" ) {
[951] Fix | Delete
$( element ).trigger( "blur" );
[952] Fix | Delete
}
[953] Fix | Delete
};
[954] Fix | Delete
[955] Fix | Delete
// Source: scroll-parent.js
[956] Fix | Delete
/*!
[957] Fix | Delete
* jQuery UI Scroll Parent 1.13.3
[958] Fix | Delete
* https://jqueryui.com
[959] Fix | Delete
*
[960] Fix | Delete
* Copyright OpenJS Foundation and other contributors
[961] Fix | Delete
* Released under the MIT license.
[962] Fix | Delete
* https://jquery.org/license
[963] Fix | Delete
*/
[964] Fix | Delete
[965] Fix | Delete
//>>label: scrollParent
[966] Fix | Delete
//>>group: Core
[967] Fix | Delete
//>>description: Get the closest ancestor element that is scrollable.
[968] Fix | Delete
//>>docs: https://api.jqueryui.com/scrollParent/
[969] Fix | Delete
[970] Fix | Delete
$.fn.scrollParent = function( includeHidden ) {
[971] Fix | Delete
var position = this.css( "position" ),
[972] Fix | Delete
excludeStaticParent = position === "absolute",
[973] Fix | Delete
overflowRegex = includeHidden ? /(auto|scroll|hidden)/ : /(auto|scroll)/,
[974] Fix | Delete
scrollParent = this.parents().filter( function() {
[975] Fix | Delete
var parent = $( this );
[976] Fix | Delete
if ( excludeStaticParent && parent.css( "position" ) === "static" ) {
[977] Fix | Delete
return false;
[978] Fix | Delete
}
[979] Fix | Delete
return overflowRegex.test( parent.css( "overflow" ) + parent.css( "overflow-y" ) +
[980] Fix | Delete
parent.css( "overflow-x" ) );
[981] Fix | Delete
} ).eq( 0 );
[982] Fix | Delete
[983] Fix | Delete
return position === "fixed" || !scrollParent.length ?
[984] Fix | Delete
$( this[ 0 ].ownerDocument || document ) :
[985] Fix | Delete
scrollParent;
[986] Fix | Delete
};
[987] Fix | Delete
[988] Fix | Delete
// Source: tabbable.js
[989] Fix | Delete
/*!
[990] Fix | Delete
* jQuery UI Tabbable 1.13.3
[991] Fix | Delete
* https://jqueryui.com
[992] Fix | Delete
*
[993] Fix | Delete
* Copyright OpenJS Foundation and other contributors
[994] Fix | Delete
* Released under the MIT license.
[995] Fix | Delete
* https://jquery.org/license
[996] Fix | Delete
*/
[997] Fix | Delete
[998] Fix | Delete
//>>label: :tabbable Selector
[999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function